mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 14:16:31 +01:00
if CANVAS_DEBUG is defined, then the env variable CANVAS_HARLEQUIN_DEBUGGING will turn on drawing the expose areas for canvas render debugging
This commit is contained in:
parent
f22f5725d5
commit
4cf21bd462
1 changed files with 10 additions and 9 deletions
|
|
@ -110,16 +110,17 @@ Canvas::render (Rect const & area, Cairo::RefPtr<Cairo::Context> const & context
|
|||
|
||||
_root.render (*draw, context);
|
||||
|
||||
#if 0
|
||||
// This transparently colors the rect being rendered, after it has been drawn.
|
||||
double r = (random() % 65536) /65536.0;
|
||||
double g = (random() % 65536) /65536.0;
|
||||
double b = (random() % 65536) /65536.0;
|
||||
context->rectangle (draw->x0, draw->y0, draw->x1 - draw->x0, draw->y1 - draw->y0);
|
||||
context->set_source_rgba (r, g, b, 0.25);
|
||||
context->fill ();
|
||||
#ifdef CANVAS_DEBUG
|
||||
if (getenv ("CANVAS_HARLEQUIN_DEBUGGING")) {
|
||||
// This transparently colors the rect being rendered, after it has been drawn.
|
||||
double r = (random() % 65536) /65536.0;
|
||||
double g = (random() % 65536) /65536.0;
|
||||
double b = (random() % 65536) /65536.0;
|
||||
context->rectangle (draw->x0, draw->y0, draw->x1 - draw->x0, draw->y1 - draw->y0);
|
||||
context->set_source_rgba (r, g, b, 0.25);
|
||||
context->fill ();
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue