PaintBrush: Don't paint over the nice GUI::Frame around ImageEditor

This commit is contained in:
Andreas Kling 2020-05-13 19:49:11 +02:00
parent 98cb442edf
commit 7ca9259ffd
Notes: sideshowbarker 2024-07-19 06:40:11 +09:00

View file

@ -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) {