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:
Dyami Caliri 2014-09-09 14:39:46 -07:00 committed by Laszlo Agocs
parent 49194275e0
commit a60e13ce06

View File

@ -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();
} }