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

PixelPaint: Single-clicking the BrushTool now adds to undo_stack

Simple change, prior to this BrushTool and EraseTool would not
have update the undo_stack for the ImageEditor unless you were
clicking and dragging.
This commit is contained in:
Cody Hein 2022-12-11 18:00:35 -07:00 committed by Sam Atkins
parent 28bb3367cb
commit 074ba104c8

View file

@ -51,6 +51,7 @@ void BrushTool::on_mousedown(Layer* layer, MouseEvent& event)
layer->did_modify_bitmap(Gfx::IntRect::centered_on(layer_event.position(), Gfx::IntSize { m_size * 2, m_size * 2 }));
m_last_position = layer_event.position();
m_has_clicked = true;
m_was_drawing = true;
}
void BrushTool::on_mousemove(Layer* layer, MouseEvent& event)