Explorar o código

LibGfx: Round menu font size up when calculating menubar height

Andreas Kling %!s(int64=2) %!d(string=hai) anos
pai
achega
f9a62900b7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Userland/Libraries/LibGfx/ClassicWindowTheme.cpp

+ 1 - 1
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