add a test for an environment variable before switching canvas single-expose off
This commit is contained in:
parent
4b563ae518
commit
e64af8e4ed
|
@ -554,6 +554,16 @@ GtkCanvas::GtkCanvas ()
|
||||||
Gdk::KEY_PRESS_MASK | Gdk::KEY_RELEASE_MASK);
|
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
|
void
|
||||||
GtkCanvas::use_nsglview (bool retina)
|
GtkCanvas::use_nsglview (bool retina)
|
||||||
{
|
{
|
||||||
|
|
|
@ -235,7 +235,7 @@ public:
|
||||||
|
|
||||||
bool get_mouse_position (Duple& winpos) const;
|
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; }
|
bool single_exposure () { return _single_exposure; }
|
||||||
|
|
||||||
void re_enter ();
|
void re_enter ();
|
||||||
|
|
Loading…
Reference in New Issue