Make optimized drawing of timeline canvas a compile-time option.
This commit is contained in:
parent
58ee27f7f1
commit
0bd5611092
5
Makefile
5
Makefile
|
@ -52,6 +52,11 @@ else
|
||||||
CXXFLAGS := -fno-rtti -fno-exceptions
|
CXXFLAGS := -fno-rtti -fno-exceptions
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
ifeq ($(USE_UNOPTIMIZED_DRAWING),yes)
|
||||||
|
CFLAGS+=-DUSE_UNOPTIMIZED_DRAWING
|
||||||
|
endif
|
||||||
|
|
||||||
CFLAGS+=-DVERSION=\"$(VERSION)\" \
|
CFLAGS+=-DVERSION=\"$(VERSION)\" \
|
||||||
-DINSTALL_PREFIX=\"$(prefix)\" \
|
-DINSTALL_PREFIX=\"$(prefix)\" \
|
||||||
-DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \
|
-DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \
|
||||||
|
|
|
@ -896,7 +896,11 @@ Timeline::draw ( void )
|
||||||
|
|
||||||
adjust_vscroll();
|
adjust_vscroll();
|
||||||
|
|
||||||
|
#ifndef USE_UNOPTIMIZED_DRAWING
|
||||||
if ( ( damage() & FL_DAMAGE_ALL ) || ( damage() & FL_DAMAGE_EXPOSE ) )
|
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" );
|
DMESSAGE( "complete redraw" );
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,8 @@ 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
|
||||||
|
|
||||||
begin_tests
|
begin_tests
|
||||||
|
|
||||||
require_FLTK 1.1.7 images
|
require_FLTK 1.1.7 images
|
||||||
|
|
Loading…
Reference in New Issue