1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:38:11 +00:00

WindowServer: Fix some pixels in menus after window border changes

This commit is contained in:
Andreas Kling 2020-04-30 21:36:35 +02:00
parent c3a2dffe29
commit 2822b1035f

View file

@ -187,8 +187,8 @@ void Menu::draw()
Gfx::Painter painter(*menu_window()->backing_store());
Gfx::Rect rect { {}, menu_window()->size() };
painter.fill_rect(rect.shrunken(6, 6), palette.menu_base());
Gfx::StylePainter::paint_window_frame(painter, rect, palette);
painter.fill_rect(rect.shrunken(6, 6), palette.menu_base());
int width = this->content_width();
if (!s_checked_bitmap)