mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-23 17:58:59 +00:00
PixelPaint: Call Layer::did_modify_bitmap()
after drawing Ellipse
Previously, Any potential ImageClients would not have received an update about the layer bitmap having been modified. This is similar to what the other shape tools do upon completion.
This commit is contained in:
parent
a5c8d1f7dd
commit
9097f86e51
Notes:
sideshowbarker
2024-07-18 04:02:35 +09:00
Author: https://github.com/mustafaquraish
Commit: 9097f86e51
Pull-request: https://github.com/SerenityOS/serenity/pull/10012
Issue: https://github.com/SerenityOS/serenity/issues/9970
Issue: https://github.com/SerenityOS/serenity/issues/9986
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ void EllipseTool::on_mouseup(Layer* layer, MouseEvent& event)
|
||||||
GUI::Painter painter(layer->bitmap());
|
GUI::Painter painter(layer->bitmap());
|
||||||
draw_using(painter, m_ellipse_start_position, m_ellipse_end_position, m_thickness);
|
draw_using(painter, m_ellipse_start_position, m_ellipse_end_position, m_thickness);
|
||||||
m_drawing_button = GUI::MouseButton::None;
|
m_drawing_button = GUI::MouseButton::None;
|
||||||
|
layer->did_modify_bitmap();
|
||||||
m_editor->update();
|
m_editor->update();
|
||||||
m_editor->did_complete_action();
|
m_editor->did_complete_action();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue