diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2017-08-02 16:52:37 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2017-08-02 21:58:21 +0000 |
commit | d7bb44dba4e894c14e500d29aaa889c6b7df01db (patch) | |
tree | fbfece902614eeb6f835e26b9c8c985cb67a800e /src/opengl | |
parent | 8e53e787d961a847aea7d5ed03bbafc5fe2eb683 (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.cpp | 4 |
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 |