comparison 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
comparison
equal deleted inserted replaced
1356:dddfd28e4f02 1357:93eaff6f206d
2371 } 2371 }
2372 2372
2373 void 2373 void
2374 Pane::horizontalThumbwheelMoved(int value) 2374 Pane::horizontalThumbwheelMoved(int value)
2375 { 2375 {
2376 cerr << "horizontalThumbwheelMoved(" << value << ")" << endl; 2376 ZoomLevel level = getZoomLevelByIndex(m_hthumb->getMaximumValue() - value);
2377
2378 ZoomLevel level = getZoomLevelByIndex
2379 (m_hthumb->getMaximumValue() - value);
2380
2381 cerr << "new level is " << level << endl;
2382 setZoomLevel(level); 2377 setZoomLevel(level);
2383 } 2378 }
2384 2379
2385 void 2380 void
2386 Pane::verticalThumbwheelMoved(int value) 2381 Pane::verticalThumbwheelMoved(int value)