13
0

add a test for an environment variable before switching canvas single-expose off

This commit is contained in:
Paul Davis 2024-03-18 11:28:16 -06:00
parent 4b563ae518
commit e64af8e4ed
2 changed files with 11 additions and 1 deletions

View File

@ -554,6 +554,16 @@ GtkCanvas::GtkCanvas ()
Gdk::KEY_PRESS_MASK | Gdk::KEY_RELEASE_MASK);
}
void
GtkCanvas::set_single_exposure (bool yn)
{
if (g_getenv ("ARDOUR_CANVAS_SINGLE_EXPOSE_ALWAYS")) {
yn = true;
}
_single_exposure = yn;
}
void
GtkCanvas::use_nsglview (bool retina)
{

View File

@ -235,7 +235,7 @@ public:
bool get_mouse_position (Duple& winpos) const;
void set_single_exposure (bool s) { _single_exposure = s; }
void set_single_exposure (bool s);
bool single_exposure () { return _single_exposure; }
void re_enter ();