mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:47: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:
parent
afc434c416
commit
3b3df40eb9
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ Selection::Selection(ImageEditor& editor)
|
||||||
++m_marching_ants_offset;
|
++m_marching_ants_offset;
|
||||||
m_marching_ants_offset %= (marching_ant_length * 2);
|
m_marching_ants_offset %= (marching_ant_length * 2);
|
||||||
if (!is_empty() || m_in_interactive_selection)
|
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();
|
m_marching_ants_timer->start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue