mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/statistics] Avoid blinking in histogram view
Change-Id: Ia50ef402a381205ded2fc956e7d345853d4654e1
This commit is contained in:
@@ -19,8 +19,10 @@ void HistogramView::reload() {
|
||||
CurveView::reload();
|
||||
float pixelLowerBound = floatToPixel(Axis::Horizontal, m_highlightedBarStart)-2;
|
||||
float pixelUpperBound = floatToPixel(Axis::Horizontal, m_highlightedBarEnd)+2;
|
||||
/* We deliberately do not mark as dirty the frame of the banner view to avoid
|
||||
*unpleasant blinking of the drawing of the banner view. */
|
||||
KDRect dirtyZone(KDRect(pixelLowerBound, 0, pixelUpperBound-pixelLowerBound,
|
||||
bounds().height()));
|
||||
bounds().height()-m_bannerView->bounds().height()));
|
||||
markRectAsDirty(dirtyZone);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user