diff options
author | Marcus Nilsson <brainbomb@gmail.com> | 2021-08-13 22:04:17 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-14 12:45:48 +0200 |
commit | 3b3df40eb92601dcc57b502a91d785b271e35655 (patch) | |
tree | 593720db43110130a0c49b12fcc204729d6b9003 /Userland | |
parent | afc434c416dbf546b2aa7e672370138e7e9b57b2 (diff) | |
download | serenity-3b3df40eb92601dcc57b502a91d785b271e35655.zip |
PixelPaint: Revert update rect tightening for Selection
Tightening of the update rect when firing the marching ants timer
unfortunately meant that only finalized selections would be redrawn,
and any new selection drawn outside of the update rect would not
update.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Applications/PixelPaint/Selection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/Selection.cpp b/Userland/Applications/PixelPaint/Selection.cpp index 7d591c6a84..dc1e9e0838 100644 --- a/Userland/Applications/PixelPaint/Selection.cpp +++ b/Userland/Applications/PixelPaint/Selection.cpp @@ -24,7 +24,7 @@ Selection::Selection(ImageEditor& editor) ++m_marching_ants_offset; m_marching_ants_offset %= (marching_ant_length * 2); if (!is_empty() || m_in_interactive_selection) - m_editor.update(m_editor.image_rect_to_editor_rect(bounding_rect().inflated(10, 10)).to_type<int>()); + m_editor.update(); }); m_marching_ants_timer->start(); } |