Make doublebuffering of the timeline sub-window a compile-time option.

pull/3/head
Jonathan Moore Liles 2010-01-07 23:35:50 -06:00
parent 0bd5611092
commit e904ff9fae
4 changed files with 15 additions and 9 deletions

View File

@ -57,6 +57,10 @@ ifeq ($(USE_UNOPTIMIZED_DRAWING),yes)
CFLAGS+=-DUSE_UNOPTIMIZED_DRAWING
endif
ifeq ($(USE_SINGLEBUFFERED_TIMELINE),yes)
CFLAGS+=-DUSE_SINGLEBUFFERED_TIMELINE
endif
CFLAGS+=-DVERSION=\"$(VERSION)\" \
-DINSTALL_PREFIX=\"$(prefix)\" \
-DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \

View File

@ -46,6 +46,11 @@
#include "const.h"
#include "util/debug.h"
#ifdef USE_SINGLEBUFFERED_TIMELINE
#warning Using singlebuffered timeline window. This may cause flicker and makes the cursors invisible.
#define redraw_overlay()
#endif
bool Timeline::draw_with_measure_lines = true;

View File

@ -51,18 +51,11 @@ class Scalebar;
class Sequence;
class Sequence_Widget;
// disables double-buffering to make unnecessary redrawing more apparent
// #define DEBUG_TIMELINE_DRAWING
#ifndef DEBUG_TIMELINE_DRAWING
#ifndef USE_SINGLEBUFFERED_TIMELINE
#include <Fl/Fl_Overlay_Window.H>
#else
#include <FL/Fl_Single_Window.H>
#define Fl_Overlay_Window Fl_Single_Window
#define redraw_overlay()
#endif
struct position_info;

6
configure vendored
View File

@ -13,7 +13,11 @@ ask "Installation prefix" prefix /usr/local
ask "Use the LASH Audio Session Handler" USE_LASH yes
ask "Build for debugging" USE_DEBUG no
using DEBUG && ask "Use unoptimized drawing routines" USE_UNOPTIMIZED_DRAWING no
using DEBUG &&
{
ask "Use unoptimized drawing routines" USE_UNOPTIMIZED_DRAWING no
ask "Use singlebuffered timeline" USE_SINGLEBUFFERED_TIMELINE no
}
begin_tests