mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user