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>bb10
parent
8e53e787d9
commit
d7bb44dba4
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue