summaryrefslogtreecommitdiff
path: root/metawatch/metawatchpaintengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'metawatch/metawatchpaintengine.cpp')
-rw-r--r--metawatch/metawatchpaintengine.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/metawatch/metawatchpaintengine.cpp b/metawatch/metawatchpaintengine.cpp
index 1b449ab..33f9490 100644
--- a/metawatch/metawatchpaintengine.cpp
+++ b/metawatch/metawatchpaintengine.cpp
@@ -3,8 +3,6 @@
using namespace sowatch;
-const QRect MetaWatchPaintEngine::totalAreaRect(0, 0, MetaWatch::screenWidth, MetaWatch::screenHeight);
-
MetaWatchPaintEngine::MetaWatchPaintEngine(MetaWatch* watch) :
WatchPaintEngine(),
_watch(watch)
@@ -95,7 +93,7 @@ void MetaWatchPaintEngine::updateState(const QPaintEngineState &state)
bool MetaWatchPaintEngine::fillsEntireImage(const QRect& rect)
{
- return rect == totalAreaRect &&
+ return rect == _area &&
(!_clipEnabled ||
- (_clipRegion.numRects() == 1 && _clipRegion.rects().at(0) == totalAreaRect));
+ (_clipRegion.numRects() == 1 && _clipRegion.rects().at(0) == _area));
}