mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
PixelPaint: Use the currently_edited_bitmap in the Tools
This way, you can actually edit the mask of a Layer!
This commit is contained in:
parent
96829565d8
commit
f972f8e7a8
Notes:
sideshowbarker
2024-07-17 17:46:56 +09:00
Author: https://github.com/TobyAsE
Commit: f972f8e7a8
Pull-request: https://github.com/SerenityOS/serenity/pull/12934
7 changed files with 11 additions and 11 deletions
|
|
@ -67,7 +67,7 @@ void EllipseTool::on_mouseup(Layer* layer, MouseEvent& event)
|
|||
return;
|
||||
|
||||
if (event.layer_event().button() == m_drawing_button) {
|
||||
GUI::Painter painter(layer->content_bitmap());
|
||||
GUI::Painter painter(layer->currently_edited_bitmap());
|
||||
draw_using(painter, m_ellipse_start_position, m_ellipse_end_position, m_thickness);
|
||||
m_drawing_button = GUI::MouseButton::None;
|
||||
layer->did_modify_bitmap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue