diff options
author | Filiph Sandström <filiph.sandstrom@filfatstudios.com> | 2022-01-01 19:32:41 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-01-01 20:30:09 +0000 |
commit | c4b78bee45015fc3d168ea005bcad6a40ecf427c (patch) | |
tree | a5182adb0eebe99aac21af979773026dce0ea89c /Userland/Libraries/LibGfx | |
parent | 4abc2f669a8b0ca48fd2287403acb5ef32b982b4 (diff) | |
download | serenity-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.cpp | 2 |
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; |