WindowServer: Round menu item font sizes up when calculating height

This commit is contained in:
Andreas Kling 2023-01-06 11:28:09 +01:00
parent dd8d65ada0
commit c8b286084b
Notes: sideshowbarker 2024-07-17 03:30:41 +09:00

View file

@ -95,7 +95,7 @@ int Menu::content_width() const
int Menu::item_height() const
{
return max(font().preferred_line_height(), s_item_icon_width + 2) + 4;
return max(static_cast<int>(ceilf(font().preferred_line_height())), s_item_icon_width + 2) + 4;
}
void Menu::redraw()