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/rc_option_editor.cc | |
parent | d6a5e6fc2e43b835351a0f1d33e9dc3df7d8040f (diff) |
image-surface/software rendering as preference
Diffstat (limited to 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r-- | gtk2_ardour/rc_option_editor.cc | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index 1543dfae0e..fce5a4a780 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -21,6 +21,10 @@ #include "gtk2ardour-config.h" #endif +#if !defined USE_CAIRO_IMAGE_SURFACE && !defined NDEBUG +#define OPTIONAL_CAIRO_IMAGE_SURFACE +#endif + #include <cairo/cairo.h> #include <boost/algorithm/string.hpp> @@ -2776,18 +2780,31 @@ RCOptionEditor::RCOptionEditor () /* INTERFACE */ +#ifdef OPTIONAL_CAIRO_IMAGE_SURFACE + BoolOption* bgo = new BoolOption ( + "cairo-image-surface", + _("Disable Graphics Hardware Acceleration (requires restart)"), + sigc::mem_fun (*_ui_config, &UIConfiguration::get_cairo_image_surface), + sigc::mem_fun (*_ui_config, &UIConfiguration::set_cairo_image_surface) + ); + + Gtkmm2ext::UI::instance()->set_tip (bgo->tip_widget(), string_compose ( + _("Render large parts of the application user-interface in software, instead of using 2D-graphics acceleration.\nThis requires restarting %1 before having an effect"), PROGRAM_NAME)); + add_option (S_("Preferences|GUI"), bgo); +#endif + #ifdef CAIRO_SUPPORTS_FORCE_BUGGY_GRADIENTS_ENVIRONMENT_VARIABLE BoolOption* bgo = new BoolOption ( "buggy-gradients", - _("Possibly improve slow graphical performance"), + _("Possibly improve slow graphical performance (requires restart)"), sigc::mem_fun (*_ui_config, &UIConfiguration::get_buggy_gradients), sigc::mem_fun (*_ui_config, &UIConfiguration::set_buggy_gradients) ); - Gtkmm2ext::UI::instance()->set_tip (bgo->tip_widget(), string_compose (_("This requires restarting %1 before having an effect"), PROGRAM_NAME)); + Gtkmm2ext::UI::instance()->set_tip (bgo->tip_widget(), string_compose (_("Disables hardware gradient rendering on buggy video drivers (\"buggy gradients patch\").\nThis requires restarting %1 before having an effect"), PROGRAM_NAME)); add_option (S_("Preferences|GUI"), bgo); #endif - + add_option (S_("Preferences|GUI"), new BoolOption ( "widget-prelight", |