diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2016-10-05 14:27:27 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2017-09-07 09:12:40 +0000 |
commit | 62271c22e5472b9a6c4688fa906bf5d7cfda1953 (patch) | |
tree | 49b05fd2f4f75f281857bdfcbf511a114b819ad9 /src/quick/items/context2d/qquickcontext2dtexture_p.h | |
parent | c103ab2c2257ae99c541d4be15532edeba144762 (diff) |
Canvas: Repaint on devicePixelRatio Change
Handle moving between high- and normal-DPI displays.
The texture gets a setCanvasWindow() call on screen
change. Read window->effectiveDevicePixelRatio() here
and set m_canvasWindowChanged on change to trigger
a repaint if there was a change.
Task-number: QTBUG-37095
Change-Id: I96ff07bd7334269cad219eb0a9056c62e850aac7
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/context2d/qquickcontext2dtexture_p.h')
-rw-r--r-- | src/quick/items/context2d/qquickcontext2dtexture_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/context2d/qquickcontext2dtexture_p.h b/src/quick/items/context2d/qquickcontext2dtexture_p.h index 97135816a2..81896dcdc1 100644 --- a/src/quick/items/context2d/qquickcontext2dtexture_p.h +++ b/src/quick/items/context2d/qquickcontext2dtexture_p.h @@ -168,6 +168,7 @@ protected: QSize m_canvasSize; QSize m_tileSize; QRect m_canvasWindow; + qreal m_canvasDevicePixelRatio; QMutex m_mutex; QWaitCondition m_condition; |