mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
PaintBrush: Don't paint over the nice GUI::Frame around ImageEditor
This commit is contained in:
parent
98cb442edf
commit
7ca9259ffd
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue