Skip to content

Commit

Permalink
Make high-dpi QGLWidget work cross platform
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Morten Johan Sørvig committed Aug 2, 2017
1 parent 8e53e78 commit d7bb44d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/opengl/qglpaintdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7bb44d

Please sign in to comment.