Make optimized drawing of timeline canvas a compile-time option.

pull/3/head
Jonathan Moore Liles 2010-01-07 23:26:10 -06:00
parent 58ee27f7f1
commit 0bd5611092
3 changed files with 11 additions and 0 deletions

View File

@ -52,6 +52,11 @@ else
CXXFLAGS := -fno-rtti -fno-exceptions
endif
ifeq ($(USE_UNOPTIMIZED_DRAWING),yes)
CFLAGS+=-DUSE_UNOPTIMIZED_DRAWING
endif
CFLAGS+=-DVERSION=\"$(VERSION)\" \
-DINSTALL_PREFIX=\"$(prefix)\" \
-DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \

View File

@ -896,7 +896,11 @@ Timeline::draw ( void )
adjust_vscroll();
#ifndef USE_UNOPTIMIZED_DRAWING
if ( ( damage() & FL_DAMAGE_ALL ) || ( damage() & FL_DAMAGE_EXPOSE ) )
#else
#warning Optimized drawing of timeline disabled. This will waste your CPU.
#endif
{
DMESSAGE( "complete redraw" );

2
configure vendored
View File

@ -13,6 +13,8 @@ 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
begin_tests
require_FLTK 1.1.7 images