mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
Userland: Use Font::pixel_size_rounded_up() in more places
This commit is contained in:
parent
2e2c717e89
commit
508fb7e1e9
7 changed files with 10 additions and 10 deletions
|
@ -24,7 +24,7 @@ Tray::Tray()
|
|||
|
||||
Gfx::IntRect Tray::Item::rect(Tray const& tray) const
|
||||
{
|
||||
int item_height = static_cast<int>(ceilf(tray.font().pixel_size())) + 12;
|
||||
int item_height = tray.font().pixel_size_rounded_up() + 12;
|
||||
return Gfx::IntRect {
|
||||
tray.frame_thickness(),
|
||||
tray.frame_thickness() + static_cast<int>(index) * item_height,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue