void
FastMeter::flush_pattern_cache ()
{
- Pattern10Map::iterator i1;
- PatternBgMap::iterator ib;
-
- for (ib = hb_pattern_cache.begin(); ib != hb_pattern_cache.end(); ++ib) {
- hb_pattern_cache.erase(ib);
- }
-
- for (i1 = hm_pattern_cache.begin(); i1 != hm_pattern_cache.end(); ++i1) {
- hm_pattern_cache.erase(i1);
- }
-
- for (ib = vb_pattern_cache.begin(); ib != vb_pattern_cache.end(); ++ib) {
- vb_pattern_cache.erase(ib);
- }
-
- for (i1 = vm_pattern_cache.begin(); i1 != vm_pattern_cache.end(); ++i1) {
- vm_pattern_cache.erase(i1);
- }
+ hb_pattern_cache.clear();
+ hm_pattern_cache.clear();
+ vb_pattern_cache.clear();
+ vm_pattern_cache.clear();
}
Cairo::RefPtr<Cairo::Pattern>
// MEMO: Normaly MATURE OS clips so called invalidated rects itself making APP free of
// heavy operations which OS does with graphic HW
- // NOTE FROM PAUL: GTK does clip already. The invalidated rect isn't the only area
+ // NOTE FROM PAUL: GTK does clip already. The invalidated rect isn't the only area
// we want to clip to however, which is why this object/class is called FastMeter.
// I have left stuff commented out as I found it when I merged from Ardour in August 2014,
// but this commenting and the previous MEMO comment represent a misunderstanding