aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/rendercontrol/CMakeLists.txt
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2020-05-27 11:33:57 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2020-05-29 07:49:24 +0000
commit8a4dec618fc7e8176f1ba402a9e4d5ed342b1cf9 (patch)
tree329dd5a3fb2b502a70491571e6e68d63af18eb14 /examples/quick/rendercontrol/CMakeLists.txt
parente76629dc33953122c00e966fc41ca83a4774a881 (diff)
Fix offset on native text rendering with high-dpi scaling
The glyph positions are scaled *after* they have been positioned, so when we subtracted the margin unmodified, we would actually offset by the scaled margin (so for scale factor=2 it would be 2 pixels off, and for scale factor=4 it would be 6 pixels off, etc.) We have to also prescale the margin by the inverse of the scale we will apply later. [ChangeLog][Text] Fixed an offset on text position when combining NativeRendering with high-dpi scaling. Task-number: QTBUG-84454 Pick-to: 5.15 Change-Id: I703aeb7fbd717bee5d88cc61e9a56c6422558889 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'examples/quick/rendercontrol/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions