summaryrefslogtreecommitdiffstats
path: root/tests/manual/paintedtexture-cpp/scene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/paintedtexture-cpp/scene.cpp')
-rw-r--r--tests/manual/paintedtexture-cpp/scene.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/paintedtexture-cpp/scene.cpp b/tests/manual/paintedtexture-cpp/scene.cpp
index 19bcdbd22..568558358 100644
--- a/tests/manual/paintedtexture-cpp/scene.cpp
+++ b/tests/manual/paintedtexture-cpp/scene.cpp
@@ -75,6 +75,8 @@ protected:
int w = painter->device()->width();
int h = painter->device()->height();
+ painter->setViewport(0, h, w, -h);
+
// clear to white
painter->fillRect(0, 0, w, h, QColor(255, 255, 255));