summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-13 21:29:38 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-13 21:29:50 +0200
commit0f77be046f8add5bed2eae49498acb868d97daeb (patch)
tree0c7ef522a50348f10a566780080397904d75e108
parenta95ed3fdccf7b302fc162354fcf3ded32658a8ad (diff)
downloadserenity-0f77be046f8add5bed2eae49498acb868d97daeb.zip
PaintBrush: Draw an outline around the image boundaries
-rw-r--r--Applications/PaintBrush/ImageEditor.cpp1
1 files changed, 1 insertions, 0 deletions
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());
}