1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

PixelPaint: Allow lasso tool to select outside the active layer

This makes the lasso tool behavior consistent with other selection
tools.
This commit is contained in:
Tim Ledbetter 2023-02-25 06:27:47 +00:00 committed by Sam Atkins
parent 971a5467bf
commit ea0b527675
2 changed files with 34 additions and 65 deletions

View file

@ -30,15 +30,14 @@ public:
private:
virtual StringView tool_name() const override { return "Lasso Select Tool"sv; }
void flood_lasso_selection(Gfx::Bitmap&, Gfx::IntPoint);
void flood_lasso_selection(Gfx::Bitmap&);
RefPtr<GUI::Widget> m_properties_widget;
Selection::MergeMode m_merge_mode { Selection::MergeMode::Set };
Gfx::IntPoint m_start_position;
Gfx::IntPoint m_most_recent_position;
RefPtr<Gfx::Bitmap> m_selection_bitmap;
Vector<Gfx::IntPoint> m_preview_coords;
Vector<Gfx::IntPoint> m_path_points;
Gfx::IntPoint m_top_left;
Gfx::IntPoint m_bottom_right;