From f9a62900b760a501fd2668e98f15195c708a279c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 6 Jan 2023 11:29:03 +0100 Subject: [PATCH] LibGfx: Round menu font size up when calculating menubar height --- Userland/Libraries/LibGfx/ClassicWindowTheme.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/ClassicWindowTheme.cpp b/Userland/Libraries/LibGfx/ClassicWindowTheme.cpp index 67d1b72ea3..16ca2197de 100644 --- a/Userland/Libraries/LibGfx/ClassicWindowTheme.cpp +++ b/Userland/Libraries/LibGfx/ClassicWindowTheme.cpp @@ -16,7 +16,7 @@ namespace Gfx { int ClassicWindowTheme::menubar_height() const { - return max(20, FontDatabase::default_font().pixel_size() + 6); + return max(20, ceilf(FontDatabase::default_font().pixel_size()) + 6); } Gfx::IntRect ClassicWindowTheme::titlebar_icon_rect(WindowType window_type, WindowMode window_mode, IntRect const& window_rect, Palette const& palette) const