PaintBrush: Draw an outline around the image boundaries

This commit is contained in:
Andreas Kling 2020-05-13 21:29:38 +02:00
parent a95ed3fdcc
commit 0f77be046f
Notes: sideshowbarker 2024-07-19 06:39:56 +09:00

View file

@ -56,6 +56,7 @@ void ImageEditor::paint_event(GUI::PaintEvent& event)
painter.fill_rect_with_checkerboard(rect(), { 8, 8 }, palette().base().darkened(0.9), palette().base());
if (m_image) {
painter.draw_rect(m_image->rect().inflated(2, 2), Color::Black);
m_image->paint_into(painter, m_image->rect(), m_image->rect());
}