LibGfx: Fix drawing rounded corners when using display scaling

This commit is contained in:
Gunnar Beutner 2021-06-22 23:12:36 +02:00 committed by Andreas Kling
parent 49539abee0
commit 40f7977508
Notes: sideshowbarker 2024-07-18 11:38:16 +09:00

View File

@ -352,6 +352,10 @@ void Painter::fill_rounded_corner(const IntRect& a_rect, int radius, Color color
if (translated_a_rect.y() < rect.y())
clip_offset = rect.y() - translated_a_rect.y();
radius *= scale();
rect *= scale();
clip_offset *= scale();
RGBA32* dst = m_target->scanline(rect.top()) + rect.left();
const size_t dst_skip = m_target->pitch() / sizeof(RGBA32);