| @@ -57,6 +57,10 @@ ifeq ($(USE_UNOPTIMIZED_DRAWING),yes) | |||||
| CFLAGS+=-DUSE_UNOPTIMIZED_DRAWING | CFLAGS+=-DUSE_UNOPTIMIZED_DRAWING | ||||
| endif | endif | ||||
| ifeq ($(USE_SINGLEBUFFERED_TIMELINE),yes) | |||||
| CFLAGS+=-DUSE_SINGLEBUFFERED_TIMELINE | |||||
| endif | |||||
| CFLAGS+=-DVERSION=\"$(VERSION)\" \ | CFLAGS+=-DVERSION=\"$(VERSION)\" \ | ||||
| -DINSTALL_PREFIX=\"$(prefix)\" \ | -DINSTALL_PREFIX=\"$(prefix)\" \ | ||||
| -DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \ | -DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \ | ||||
| @@ -46,6 +46,11 @@ | |||||
| #include "const.h" | #include "const.h" | ||||
| #include "util/debug.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; | bool Timeline::draw_with_measure_lines = true; | ||||
| @@ -51,18 +51,11 @@ class Scalebar; | |||||
| class Sequence; | class Sequence; | ||||
| class Sequence_Widget; | 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> | #include <Fl/Fl_Overlay_Window.H> | ||||
| #else | #else | ||||
| #include <FL/Fl_Single_Window.H> | #include <FL/Fl_Single_Window.H> | ||||
| #define Fl_Overlay_Window Fl_Single_Window | #define Fl_Overlay_Window Fl_Single_Window | ||||
| #define redraw_overlay() | |||||
| #endif | #endif | ||||
| struct position_info; | struct position_info; | ||||
| @@ -13,7 +13,11 @@ ask "Installation prefix" prefix /usr/local | |||||
| ask "Use the LASH Audio Session Handler" USE_LASH yes | ask "Use the LASH Audio Session Handler" USE_LASH yes | ||||
| ask "Build for debugging" USE_DEBUG no | 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 | begin_tests | ||||