optimize canvas meter redrawing (as in the non-canvas version)
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 25 Sep 2016 23:28:00 +0000 (18:28 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 27 Sep 2016 19:59:32 +0000 (14:59 -0500)
libs/canvas/meter.cc

index 8d91e49d3e90c2adc75abbb67af9848090c3232e..dc22a930e8a044c01c8dcb74fb918954f23094e3 100644 (file)
@@ -717,12 +717,10 @@ Meter::set (float lvl, float peak)
        }
 
        if (orientation == Vertical) {
-               //queue_vertical_redraw (old_level);
+               queue_vertical_redraw (old_level);
        } else {
-               //queue_horizontal_redraw (old_level);
+               queue_horizontal_redraw (old_level);
        }
-
-       redraw ();
 }
 
 void