From 0f77be046f8add5bed2eae49498acb868d97daeb Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 13 May 2020 21:29:38 +0200 Subject: PaintBrush: Draw an outline around the image boundaries --- Applications/PaintBrush/ImageEditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Applications/PaintBrush/ImageEditor.cpp b/Applications/PaintBrush/ImageEditor.cpp index da6726fdd6..71d678a11c 100644 --- a/Applications/PaintBrush/ImageEditor.cpp +++ b/Applications/PaintBrush/ImageEditor.cpp @@ -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()); } -- cgit v1.2.3