diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2020-05-27 11:33:57 +0200 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2020-05-29 07:49:24 +0000 |
commit | 8a4dec618fc7e8176f1ba402a9e4d5ed342b1cf9 (patch) | |
tree | 329dd5a3fb2b502a70491571e6e68d63af18eb14 /dist/changes-5.11.1 | |
parent | e76629dc33953122c00e966fc41ca83a4774a881 (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 'dist/changes-5.11.1')
0 files changed, 0 insertions, 0 deletions