mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
PixelPaint: Inherit from AbstractZoomPanWidget
This commit is contained in:
parent
b21d128075
commit
7974fee800
12 changed files with 69 additions and 244 deletions
|
@ -134,7 +134,7 @@ void RectangleSelectTool::on_second_paint(Layer const*, GUI::PaintEvent& event)
|
|||
painter.add_clip_rect(event.rect());
|
||||
|
||||
auto rect_in_image = Gfx::IntRect::from_two_points(m_selection_start, m_selection_end);
|
||||
auto rect_in_editor = m_editor->image_rect_to_editor_rect(rect_in_image);
|
||||
auto rect_in_editor = m_editor->content_to_frame_rect(rect_in_image);
|
||||
|
||||
m_editor->selection().draw_marching_ants(painter, rect_in_editor.to_type<int>());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue