mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
PixelPaint: Update editor after drawing shapes to clear outside
Previously, we didn't ask the editor to update after drawing a Rectangle/Line. This meant that if any part of your shape went outside the bounds of the image, that part would not be cleared out until the next update of the editor.
This commit is contained in:
parent
36bcd63c0c
commit
a5c8d1f7dd
2 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,7 @@ void RectangleTool::on_mouseup(Layer* layer, MouseEvent& event)
|
|||
draw_using(painter, m_rectangle_start_position, m_rectangle_end_position, m_thickness);
|
||||
m_drawing_button = GUI::MouseButton::None;
|
||||
layer->did_modify_bitmap();
|
||||
m_editor->update();
|
||||
m_editor->did_complete_action();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue