mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-16 23:39: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:
parent
28bb3367cb
commit
074ba104c8
Notes:
sideshowbarker
2024-07-17 06:54:15 +09:00
Author: https://github.com/skmagiik 🔰
Commit: 074ba104c8
Pull-request: https://github.com/SerenityOS/serenity/pull/16441
Reviewed-by: https://github.com/AtkinsSJ ✅
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