mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
PixelPaint: Make PenTool invalidate even less when drawing :^)
This commit is contained in:
parent
5439453139
commit
bce1d633ca
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
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 = 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);
|
layer.did_modify_bitmap(changed_rect);
|
||||||
|
|
||||||
m_last_drawing_event_position = event.position();
|
m_last_drawing_event_position = event.position();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue