mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
PaintBrush: Don't paint over the nice GUI::Frame around ImageEditor
This commit is contained in:
parent
98cb442edf
commit
7ca9259ffd
Notes:
sideshowbarker
2024-07-19 06:40:11 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/7ca9259ffda
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…
Reference in a new issue