summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2017-08-02 16:52:37 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2017-08-02 21:58:21 +0000
commitd7bb44dba4e894c14e500d29aaa889c6b7df01db (patch)
treefbfece902614eeb6f835e26b9c8c985cb67a800e /src/opengl
parent8e53e787d961a847aea7d5ed03bbafc5fe2eb683 (diff)
Make high-dpi QGLWidget work cross platform
A Q_OS_MAC ifdef was left from the days of macOS-only support. Task-number: QTBUG-59956 Change-Id: Ia10258910ad14ecccee8f0ec22e53f9299a672ff Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qglpaintdevice.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/opengl/qglpaintdevice.cpp b/src/opengl/qglpaintdevice.cpp
index e7fade8ce8..b29f71ad2e 100644
--- a/src/opengl/qglpaintdevice.cpp
+++ b/src/opengl/qglpaintdevice.cpp
@@ -197,12 +197,8 @@ void QGLWidgetGLPaintDevice::endPaint()
QSize QGLWidgetGLPaintDevice::size() const
{
-#ifdef Q_OS_MAC
return glWidget->size() * (glWidget->windowHandle() ?
glWidget->windowHandle()->devicePixelRatio() : qApp->devicePixelRatio());
-#else
- return glWidget->size();
-#endif
}
QGLContext* QGLWidgetGLPaintDevice::context() const