summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/painting/qwindowsurface_p.h1
-rw-r--r--src/opengl/qwindowsurface_gl.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/painting/qwindowsurface_p.h b/src/gui/painting/qwindowsurface_p.h
index da02f5a..c845021 100644
--- a/src/gui/painting/qwindowsurface_p.h
+++ b/src/gui/painting/qwindowsurface_p.h
@@ -86,6 +86,7 @@ public:
#else
virtual void resize(const QSize &size);
QSize size() const;
+ inline QRect geometry() const { return QRect(QPoint(), size()); } //### cleanup before Qt 5
#endif
virtual bool scroll(const QRegion &area, int dx, int dy);
diff --git a/src/opengl/qwindowsurface_gl.cpp b/src/opengl/qwindowsurface_gl.cpp
index 8c54fd1..6571a76 100644
--- a/src/opengl/qwindowsurface_gl.cpp
+++ b/src/opengl/qwindowsurface_gl.cpp
@@ -499,13 +499,11 @@ void QGLWindowSurface::flush(QWidget *widget, const QRegion &rgn, const QPoint &
}
}
#endif
-#ifndef Q_WS_QPA //###############################################
if (d_ptr->paintedRegion.boundingRect() != geometry()) {
// Emits warning if not supported. Should never happen unless
// setPartialUpdateSupport(true) has been called.
context()->d_func()->swapRegion(&d_ptr->paintedRegion);
} else
-#endif
context()->swapBuffers();
d_ptr->paintedRegion = QRegion();