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

PixelPaint: Use correct thickness in EllipseTool::on_second_paint()

Previously, we were ignoring the scale of the editor in the second
paint step. If you were zoomed in, the size while you were drawing
was not the same as the size of the final shape.
This commit is contained in:
Mustafa Quraish 2021-09-06 20:45:52 -04:00 committed by Andreas Kling
parent 9669bf29f6
commit 0a9c64a4f5
2 changed files with 5 additions and 5 deletions

View file

@ -37,7 +37,7 @@ private:
FromCorner,
};
void draw_using(GUI::Painter&, Gfx::IntPoint const& start_position, Gfx::IntPoint const& end_position);
void draw_using(GUI::Painter&, Gfx::IntPoint const& start_position, Gfx::IntPoint const& end_position, int thickness);
RefPtr<GUI::Widget> m_properties_widget;
GUI::MouseButton m_drawing_button { GUI::MouseButton::None };