1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:57:35 +00:00

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
parent afc434c416
commit 3b3df40eb9

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