1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

Userland: Use Font::pixel_size_rounded_up() in more places

This commit is contained in:
Andreas Kling 2023-03-03 19:38:05 +01:00
parent 2e2c717e89
commit 508fb7e1e9
7 changed files with 10 additions and 10 deletions

View file

@ -16,7 +16,7 @@ namespace Gfx {
int ClassicWindowTheme::menubar_height() const
{
return max(20, ceilf(FontDatabase::default_font().pixel_size()) + 6);
return max(20, FontDatabase::default_font().pixel_size_rounded_up() + 6);
}
Gfx::IntRect ClassicWindowTheme::titlebar_icon_rect(WindowType window_type, WindowMode window_mode, IntRect const& window_rect, Palette const& palette) const