diff options
author | Robin Gareus <robin@gareus.org> | 2015-09-07 13:35:11 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-09-07 13:35:11 +0200 |
commit | c6e0c8430f1e84e53c64a0bc2c1963ec3157e2c3 (patch) | |
tree | 0c39777c21a22b82e24c479589ca57a1e98e5eda /gtk2_ardour/ui_config.cc | |
parent | d6a5e6fc2e43b835351a0f1d33e9dc3df7d8040f (diff) |
image-surface/software rendering as preference
Diffstat (limited to 'gtk2_ardour/ui_config.cc')
-rw-r--r-- | gtk2_ardour/ui_config.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc index 1fe2d4135f..e20eb6fc72 100644 --- a/gtk2_ardour/ui_config.cc +++ b/gtk2_ardour/ui_config.cc @@ -17,6 +17,10 @@ */ +#if !defined USE_CAIRO_IMAGE_SURFACE && !defined NDEBUG +#define OPTIONAL_CAIRO_IMAGE_SURFACE +#endif + #include <iostream> #include <sstream> #include <unistd.h> @@ -157,6 +161,11 @@ UIConfiguration::pre_gui_init () g_setenv ("FORCE_BUGGY_GRADIENTS", "1", 1); } #endif +#ifdef OPTIONAL_CAIRO_IMAGE_SURFACE + if (get_cairo_image_surface()) { + g_setenv ("ARDOUR_IMAGE_SURFACE", "1", 1); + } +#endif return 0; } |