mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +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:
parent
28bb3367cb
commit
074ba104c8
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue