mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
PaintBrush: Draw an outline around the image boundaries
This commit is contained in:
parent
a95ed3fdcc
commit
0f77be046f
Notes:
sideshowbarker
2024-07-19 06:39:56 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0f77be046f8
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…
Reference in a new issue