mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibGfx: Round menu font size up when calculating menubar height
This commit is contained in:
parent
c8b286084b
commit
f9a62900b7
Notes:
sideshowbarker
2024-07-17 07:11:12 +09:00
Author: https://github.com/awesomekling
Commit: f9a62900b7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue