mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
PixelPaint: Make PenTool invalidate even less when drawing :^)
This commit is contained in:
@@ -57,7 +57,7 @@ void PenTool::on_mousemove(Layer& layer, GUI::MouseEvent& event, GUI::MouseEvent
|
||||
painter.draw_line(event.position(), event.position(), m_editor->color_for(event), m_thickness);
|
||||
changed_rect = Gfx::IntRect::from_two_points(event.position(), event.position());
|
||||
}
|
||||
changed_rect.inflate(m_thickness * 4, m_thickness * 4);
|
||||
changed_rect.inflate(m_thickness, m_thickness);
|
||||
layer.did_modify_bitmap(changed_rect);
|
||||
|
||||
m_last_drawing_event_position = event.position();
|
||||
|
||||
Reference in New Issue
Block a user