mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/stats] Fix histogram dirty tracking
This commit is contained in:
@@ -30,6 +30,7 @@ public:
|
||||
void setCursorView(View * cursorView);
|
||||
void setBannerView(View * bannerView);
|
||||
void setDisplayBannerView(bool display) { m_displayBanner = display; }
|
||||
bool displayBannerView() const { return m_displayBanner; }
|
||||
void setOkView(View * okView);
|
||||
float resolution() const;
|
||||
protected:
|
||||
|
||||
@@ -25,7 +25,7 @@ void HistogramView::reload() {
|
||||
/* 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()-m_bannerView->bounds().height()));
|
||||
bounds().height() - (displayBannerView() ? m_bannerView->bounds().height() : 0)));
|
||||
markRectAsDirty(dirtyZone);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user