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:
parent
a95ed3fdcc
commit
0f77be046f
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue