diff options
author | Christoph Cullmann <cullmann@kde.org> | 2018-02-11 13:18:29 +0100 |
---|---|---|
committer | Dominik Haumann <dhaumann@kde.org> | 2018-02-15 17:13:19 +0000 |
commit | 47904bb08aeb5dc63c78357aba6003460a65d4b3 (patch) | |
tree | 7d9851965fbc0fddaa3b68b4978bee7aa04a7f2c /src/gui/text/qtextengine_p.h | |
parent | 09e212eec0c1b3dc7a3e951413de2d0332e44a78 (diff) |
fix selection rendering issues if rounding leads to left-out pixels
instead of manual qFloor, use the toAlignedRect() function to get the minimal enclosing rectangle
this will in some cases over-paint one-pixel, which is preferable to under-paint which
leaves gaps inside painting text lines that can not be fixed by the user of the painting routines
Task-number: QTBUG-66036
Change-Id: I8d6c2f7370e55bd544e1ff93d5c07b554b20ffeb
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Reviewed-by: Dominik Haumann <dhaumann@kde.org>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/gui/text/qtextengine_p.h')
0 files changed, 0 insertions, 0 deletions