diff options
author | Andreas Kling <kling@serenityos.org> | 2023-01-06 11:28:09 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-01-06 12:02:21 +0100 |
commit | c8b286084b8b794680fd364dd17572b2fb5d676a (patch) | |
tree | 142f7f189a4bb4c82bffef2772440e0cb2f6fd95 /Userland/Services | |
parent | dd8d65ada094e484f45a9de055967e807273ce73 (diff) | |
download | serenity-c8b286084b8b794680fd364dd17572b2fb5d676a.zip |
WindowServer: Round menu item font sizes up when calculating height
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/WindowServer/Menu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/Menu.cpp b/Userland/Services/WindowServer/Menu.cpp index 49646ef776..83048cab5c 100644 --- a/Userland/Services/WindowServer/Menu.cpp +++ b/Userland/Services/WindowServer/Menu.cpp @@ -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() |