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.
This commit is contained in:
Marcus Nilsson 2021-08-13 22:04:17 +02:00 committed by Andreas Kling
commit 3b3df40eb9
Notes: sideshowbarker 2024-07-18 06:58:16 +09:00

View file

@ -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();
}