1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:17:45 +00:00

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

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());
}