diff view/Pane.cpp @ 1357:93eaff6f206d

Rework cacheing logic to reduce the number of reallocations and be more correct about the repaint areas. I don't expect the difference to be really noticeable but in theory performance should be a little better...
author Chris Cannam
date Thu, 11 Oct 2018 14:59:34 +0100
parents b9bfcb8cd5a1
children d79e21855aef
line wrap: on
line diff
--- a/view/Pane.cpp	Thu Oct 11 10:15:45 2018 +0100
+++ b/view/Pane.cpp	Thu Oct 11 14:59:34 2018 +0100
@@ -2373,12 +2373,7 @@
 void
 Pane::horizontalThumbwheelMoved(int value)
 {
-    cerr << "horizontalThumbwheelMoved(" << value << ")" << endl;
-    
-    ZoomLevel level = getZoomLevelByIndex
-        (m_hthumb->getMaximumValue() - value);
-        
-    cerr << "new level is " << level << endl;
+    ZoomLevel level = getZoomLevelByIndex(m_hthumb->getMaximumValue() - value);
     setZoomLevel(level);
 }