mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
PixelPaint: Move "marching ants" painting logic to ImageEditor
Since this code needs to look at a bunch of ImageEditor state anyway, it makes more sense for it to live in ImageEditor.
This commit is contained in:
parent
e6d860f2fe
commit
67596d9546
5 changed files with 116 additions and 108 deletions
|
@ -136,7 +136,7 @@ void RectangleSelectTool::on_second_paint(Layer const*, GUI::PaintEvent& event)
|
|||
auto rect_in_image = Gfx::IntRect::from_two_points(m_selection_start, m_selection_end);
|
||||
auto rect_in_editor = m_editor->content_to_frame_rect(rect_in_image);
|
||||
|
||||
m_editor->selection().draw_marching_ants(painter, rect_in_editor.to_type<int>());
|
||||
m_editor->draw_marching_ants(painter, rect_in_editor.to_rounded<int>());
|
||||
}
|
||||
|
||||
GUI::Widget* RectangleSelectTool::get_properties_widget()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue