diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-06 02:04:59 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-09-06 02:04:59 +0200 |
commit | 6f30c1fddb4f717c5aa9eddfa84cb901778ab76e (patch) | |
tree | 0040f0e4b95030be5ffcd36ef8cf5bb6da0bfb37 /gtk2_ardour/ardour_button.h | |
parent | fb473475c3362bff6b7483b0ad89255078ebef8a (diff) |
optimize button pattern cache
We really should statically cache patterns
as done in PixFader and Meters (Cairo's cache is
not nearly large enough)
Diffstat (limited to 'gtk2_ardour/ardour_button.h')
-rw-r--r-- | gtk2_ardour/ardour_button.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_button.h b/gtk2_ardour/ardour_button.h index 3e257c0dbd..107f5da618 100644 --- a/gtk2_ardour/ardour_button.h +++ b/gtk2_ardour/ardour_button.h @@ -167,7 +167,8 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable bool _fallthrough_to_parent; int _layout_ellipsize_width; Pango::EllipsizeMode _ellipsis; - bool _update_colors_and_patterns; + bool _update_colors; + int _pattern_height; void setup_led_rect (); void set_colors (); |