diff options
Diffstat (limited to 'tests/manual/paintedtexture-cpp/scene.cpp')
-rw-r--r-- | tests/manual/paintedtexture-cpp/scene.cpp | 2 |
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)); |