diff options
author | Andy Nichols <andy.nichols@qt.io> | 2016-04-20 14:02:55 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2016-04-20 13:22:40 +0000 |
commit | ed62c8f668bb0f7f17946764d510e286f111688a (patch) | |
tree | 0599b0589db6ec9d70b1dc23e5599eb0cec6c71d /src/quick/scenegraph/adaptations | |
parent | 62198ab4485e15f350122770d5dfd8de7e59b8f9 (diff) |
QQuickWidget: Partial update support with software rendering
Change-Id: I886287812c1c3cd56739e24470492adc90cfafbb
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/quick/scenegraph/adaptations')
-rw-r--r-- | src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp index 433f166315..ea00de7a66 100644 --- a/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp +++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp @@ -88,7 +88,8 @@ void QSGSoftwareRenderer::render() QElapsedTimer renderTimer; setBackgroundColor(clearColor()); - setBackgroundSize(QSize(m_paintDevice->width(), m_paintDevice->height())); + setBackgroundSize(QSize(m_paintDevice->width() / m_paintDevice->devicePixelRatio(), + m_paintDevice->height() / m_paintDevice->devicePixelRatio())); QPainter painter(m_paintDevice); painter.setRenderHint(QPainter::Antialiasing); |