Browse Source

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

tags/non-daw-v1.1.0
Jonathan Moore Liles 15 years ago
parent
commit
e904ff9fae
4 changed files with 15 additions and 9 deletions
  1. +4
    -0
      Makefile
  2. +5
    -0
      Timeline/Timeline.C
  3. +1
    -8
      Timeline/Timeline.H
  4. +5
    -1
      configure

+ 4
- 0
Makefile 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)\" \


+ 5
- 0
Timeline/Timeline.C 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;


+ 1
- 8
Timeline/Timeline.H 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;


+ 5
- 1
configure 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



Loading…
Cancel
Save