summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorHatem ElKharashy <hatem.elkharashy@qt.io>2024-04-10 16:38:56 +0300
committerHatem ElKharashy <hatem.elkharashy@qt.io>2024-04-12 20:12:18 +0300
commitaabb133d07ff99157ae2070e16594eba035cca08 (patch)
tree753350b59c04b4698ccc59ca9657b6f6fc4f7c21 /src/gui/painting
parentddc80cc63d995406f37f9110c58db7d9599eed2c (diff)
Tweak the margin value of QOutlineMapper clip rect
The original change was introduced to fix performance regression due to the increased value of QT_RASTER_COORD_LIMIT. The optimization was done by clipping anything outside the device rect plus a small margin. However, setting the margin to a small value caused a regression, where the rasterization became slightly different from the previous implementation. Fixes: QTBUG-123054 Pick-to: 6.7 6.5 6.2 Change-Id: Ic4fddea89cd5f6e5760dc4a91b1f2f59527e8e5c Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qoutlinemapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qoutlinemapper.cpp b/src/gui/painting/qoutlinemapper.cpp
index 93eac5cced..2f87ff43b7 100644
--- a/src/gui/painting/qoutlinemapper.cpp
+++ b/src/gui/painting/qoutlinemapper.cpp
@@ -50,7 +50,7 @@ void QOutlineMapper::setClipRect(QRect clipRect)
if (clipRect != m_clip_rect) {
m_clip_rect = limitCoords(clipRect);
- const int mw = 64; // margin width. No need to trigger clipping for slight overshooting
+ const int mw = 1 << 10; // margin width. No need to trigger clipping for slight overshooting
m_clip_trigger_rect = QRectF(limitCoords(m_clip_rect.adjusted(-mw, -mw, mw, mw)));
}
}