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
Notes: sideshowbarker 2024-07-19 07:09:10 +09:00

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)