mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
allow runtime control over cairo save/restore around item rendering
This is to allow easier debugging of whether a given item's render method fails to leave a cairo context in the same state it received it in
This commit is contained in:
parent
d57ce0eba1
commit
adfba3d39d
3 changed files with 16 additions and 1 deletions
|
|
@ -68,6 +68,13 @@ Canvas::Canvas ()
|
|||
#else
|
||||
_use_intermediate_surface = NULL != g_getenv("ARDOUR_INTERMEDIATE_SURFACE");
|
||||
#endif
|
||||
|
||||
if (g_getenv ("ARDOUR_ITEM_CAIRO_SAVE_RESTORE")) {
|
||||
item_save_restore = true;
|
||||
} else {
|
||||
item_save_restore = false;
|
||||
}
|
||||
|
||||
set_epoch ();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue