diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-13 19:49:11 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-13 19:49:38 +0200 |
commit | 7ca9259ffda5e64bd4844965bc4b276b2e576e2c (patch) | |
tree | d786da423d6887018c80bcbc62af1ef38aef391a /Applications | |
parent | 98cb442edf69acd59b707fb5a06f7dda7b72788b (diff) | |
download | serenity-7ca9259ffda5e64bd4844965bc4b276b2e576e2c.zip |
PaintBrush: Don't paint over the nice GUI::Frame around ImageEditor
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/PaintBrush/ImageEditor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Applications/PaintBrush/ImageEditor.cpp b/Applications/PaintBrush/ImageEditor.cpp index 87f9aab57d..da6726fdd6 100644 --- a/Applications/PaintBrush/ImageEditor.cpp +++ b/Applications/PaintBrush/ImageEditor.cpp @@ -50,7 +50,9 @@ void ImageEditor::paint_event(GUI::PaintEvent& event) GUI::Painter painter(*this); painter.add_clip_rect(event.rect()); + painter.add_clip_rect(frame_inner_rect()); + painter.translate(frame_thickness(), frame_thickness()); painter.fill_rect_with_checkerboard(rect(), { 8, 8 }, palette().base().darkened(0.9), palette().base()); if (m_image) { |