projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cache shaded meter-background regardless of color
[ardour.git]
/
libs
/
gtkmm2ext
/
fastmeter.cc
diff --git
a/libs/gtkmm2ext/fastmeter.cc
b/libs/gtkmm2ext/fastmeter.cc
index e7efaa81b9b1f2640f55bb79dbc40580867faa2a..143bbe2b1c9d305519b281efba3ca47fb38ea814 100644
(file)
--- a/
libs/gtkmm2ext/fastmeter.cc
+++ b/
libs/gtkmm2ext/fastmeter.cc
@@
-357,7
+357,7
@@
FastMeter::request_vertical_background(
height = min(height, max_pattern_metric_size);
height += 2;
height = min(height, max_pattern_metric_size);
height += 2;
- const PatternBgMapKey key (width, height, bgc[0], bgc[1]);
+ const PatternBgMapKey key (width, height, bgc[0], bgc[1]
, shade
);
PatternBgMap::iterator i;
if ((i = vb_pattern_cache.find (key)) != vb_pattern_cache.end()) {
return i->second;
PatternBgMap::iterator i;
if ((i = vb_pattern_cache.find (key)) != vb_pattern_cache.end()) {
return i->second;
@@
-405,7
+405,7
@@
FastMeter::request_horizontal_background(
width = min(width, max_pattern_metric_size);
width += 2;
width = min(width, max_pattern_metric_size);
width += 2;
- const PatternBgMapKey key (width, height, bgc[0], bgc[1]);
+ const PatternBgMapKey key (width, height, bgc[0], bgc[1]
, shade
);
PatternBgMap::iterator i;
if ((i = hb_pattern_cache.find (key)) != hb_pattern_cache.end()) {
return i->second;
PatternBgMap::iterator i;
if ((i = hb_pattern_cache.find (key)) != hb_pattern_cache.end()) {
return i->second;