summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx
diff options
context:
space:
mode:
authorFiliph Sandström <filiph.sandstrom@filfatstudios.com>2022-01-01 19:32:41 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-01-01 20:30:09 +0000
commitc4b78bee45015fc3d168ea005bcad6a40ecf427c (patch)
treea5182adb0eebe99aac21af979773026dce0ea89c /Userland/Libraries/LibGfx
parent4abc2f669a8b0ca48fd2287403acb5ef32b982b4 (diff)
downloadserenity-c4b78bee45015fc3d168ea005bcad6a40ecf427c.zip
LibGfx: Remove VERIFY in draw_rect_with_thickness
draw_line with thickness already supports scaling so that verify isn't needed anymore. This fixes a scaling chrash introduced in 8a1d77f.
Diffstat (limited to 'Userland/Libraries/LibGfx')
-rw-r--r--Userland/Libraries/LibGfx/Painter.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/Painter.cpp b/Userland/Libraries/LibGfx/Painter.cpp
index cdf399c5e5..d1d131b2fa 100644
--- a/Userland/Libraries/LibGfx/Painter.cpp
+++ b/Userland/Libraries/LibGfx/Painter.cpp
@@ -593,8 +593,6 @@ void Painter::draw_rect(IntRect const& a_rect, Color color, bool rough)
void Painter::draw_rect_with_thickness(IntRect const& rect, Color color, int thickness)
{
- VERIFY(scale() == 1); // FIXME: Add scaling support.
-
if (thickness <= 0)
return;