mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Applications: Round layer rect before drawing outline in PixelPaint
This fixes differences in drawing the layer and image outlines.
This commit is contained in:
committed by
Andreas Kling
parent
ab19b092ed
commit
b8a53e4a17
@@ -119,9 +119,8 @@ void ImageEditor::paint_event(GUI::PaintEvent& event)
|
||||
painter.draw_rect(content_rect().inflated(2, 2), Color::Black);
|
||||
m_image->paint_into(painter, content_rect());
|
||||
|
||||
if (m_active_layer && m_show_active_layer_boundary) {
|
||||
painter.draw_rect(enclosing_int_rect(content_to_frame_rect(m_active_layer->relative_rect())).inflated(2, 2), Color::Black);
|
||||
}
|
||||
if (m_active_layer && m_show_active_layer_boundary)
|
||||
painter.draw_rect(content_to_frame_rect(m_active_layer->relative_rect()).to_rounded<int>().inflated(2, 2), Color::Black);
|
||||
|
||||
if (m_show_pixel_grid && scale() > m_pixel_grid_threshold) {
|
||||
auto event_image_rect = enclosing_int_rect(frame_to_content_rect(event.rect())).inflated(1, 1);
|
||||
|
||||
Reference in New Issue
Block a user