diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-17 15:22:09 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-17 15:22:09 -0400 |
commit | ec102f94e1105a6c9f445a0cde6c2dd1b6ea4b8b (patch) | |
tree | 970d269534121d51960bc56a5d6092d88c6baf97 /libs/canvas/canvas.cc | |
parent | 9727a2311100d87bba1ceac62e5a9e42e9420cd8 (diff) |
various work waveview amplitude mgmt; fix playhead cursor drag from timebar click
Diffstat (limited to 'libs/canvas/canvas.cc')
-rw-r--r-- | libs/canvas/canvas.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/canvas/canvas.cc b/libs/canvas/canvas.cc index ff624be8fb..3c3980890e 100644 --- a/libs/canvas/canvas.cc +++ b/libs/canvas/canvas.cc @@ -72,6 +72,18 @@ Canvas::render (Rect const & area, Cairo::RefPtr<Cairo::Context> const & context context->save (); +#ifdef CANVAS_DEBUG + if (getenv ("ARDOUR_REDRAW_CANVAS")) { + /* light up the canvas to show redraws */ + context->set_source_rgba (random()%255 / 255.0, + random()%255 / 255.0, + random()%255 / 255.0, + 255); + context->rectangle (area.x0, area.y0, area.width(), area.height()); + context->stroke (); + } +#endif + /* clip to the requested area */ context->rectangle (area.x0, area.y0, area.width(), area.height()); context->clip (); |