Update QOpenGLWidget paintDevice devicePixelRatio when recreating fbo
The QOpenGLWidget's paintDevice needs to update devicePixelRatio when changing screens. Change-Id: Iec6e7157f22ff99e04f81347cbbf70f3fc3ff424 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
parent
49194275e0
commit
a60e13ce06
@ -558,6 +558,7 @@ void QOpenGLWidgetPrivate::recreateFbo()
|
|||||||
fbo->bind();
|
fbo->bind();
|
||||||
|
|
||||||
paintDevice->setSize(deviceSize);
|
paintDevice->setSize(deviceSize);
|
||||||
|
paintDevice->setDevicePixelRatio(q->devicePixelRatio());
|
||||||
|
|
||||||
emit q->resized();
|
emit q->resized();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user