diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-09 19:47:46 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-09 22:07:00 +0200 |
commit | bce1d633ca925f62e377ca66bbf8a61bfb4fa4f8 (patch) | |
tree | 53c49d84ec2877d13a98cde11f3804a545557f98 /Userland/Applications/PixelPaint | |
parent | 543945313985589f895a9c4d8bd7a3d97c352d16 (diff) | |
download | serenity-bce1d633ca925f62e377ca66bbf8a61bfb4fa4f8.zip |
PixelPaint: Make PenTool invalidate even less when drawing :^)
Diffstat (limited to 'Userland/Applications/PixelPaint')
-rw-r--r-- | Userland/Applications/PixelPaint/PenTool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/PenTool.cpp b/Userland/Applications/PixelPaint/PenTool.cpp index 26b48e5851..f99e651e46 100644 --- a/Userland/Applications/PixelPaint/PenTool.cpp +++ b/Userland/Applications/PixelPaint/PenTool.cpp @@ -57,7 +57,7 @@ void PenTool::on_mousemove(Layer& layer, GUI::MouseEvent& event, GUI::MouseEvent painter.draw_line(event.position(), event.position(), m_editor->color_for(event), m_thickness); changed_rect = Gfx::IntRect::from_two_points(event.position(), event.position()); } - changed_rect.inflate(m_thickness * 4, m_thickness * 4); + changed_rect.inflate(m_thickness, m_thickness); layer.did_modify_bitmap(changed_rect); m_last_drawing_event_position = event.position(); |