diff options
author | Andreas Kling <kling@serenityos.org> | 2022-08-25 20:42:56 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-26 01:04:52 +0200 |
commit | 67596d9546fc2a08b5022dc60e5a30e3ea2c2f18 (patch) | |
tree | dd80c00ce6dc61b93dd9d2e570ed7906581efd03 /Userland/Applications/PixelPaint/Tools/RectangleSelectTool.cpp | |
parent | e6d860f2fe49ad8f39300087d1d9da3e052f3faf (diff) | |
download | serenity-67596d9546fc2a08b5022dc60e5a30e3ea2c2f18.zip |
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.
Diffstat (limited to 'Userland/Applications/PixelPaint/Tools/RectangleSelectTool.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/Tools/RectangleSelectTool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/Tools/RectangleSelectTool.cpp b/Userland/Applications/PixelPaint/Tools/RectangleSelectTool.cpp index 0d2d7daea1..890aa9bc4f 100644 --- a/Userland/Applications/PixelPaint/Tools/RectangleSelectTool.cpp +++ b/Userland/Applications/PixelPaint/Tools/RectangleSelectTool.cpp @@ -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() |