diff options
author | Andreas Kling <kling@serenityos.org> | 2023-03-03 19:32:19 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-04 00:29:38 +0100 |
commit | b71c7a6e44981c35ae93c91944e6cff70006285d (patch) | |
tree | 0b7fc5d68ed0559ecf6ce4db9a7f18f3334e3ee8 /Userland/Applications/HexEditor/HexEditor.h | |
parent | 93c9344e3558fee71deb5067e68146582891b319 (diff) | |
download | serenity-b71c7a6e44981c35ae93c91944e6cff70006285d.zip |
Userland: Use Font::pixel_size_rounded_up() instead of glyph_height()
The only remaining clients of this API are specific to bitmap fonts and
editing thereof.
Diffstat (limited to 'Userland/Applications/HexEditor/HexEditor.h')
-rw-r--r-- | Userland/Applications/HexEditor/HexEditor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/HexEditor/HexEditor.h b/Userland/Applications/HexEditor/HexEditor.h index 37797b3cf6..f521716013 100644 --- a/Userland/Applications/HexEditor/HexEditor.h +++ b/Userland/Applications/HexEditor/HexEditor.h @@ -97,7 +97,7 @@ private: void scroll_position_into_view(size_t position); size_t total_rows() const { return ceil_div(m_content_length, m_bytes_per_row); } - size_t line_height() const { return font().glyph_height() + m_line_spacing; } + size_t line_height() const { return font().pixel_size_rounded_up() + m_line_spacing; } size_t character_width() const { return font().glyph_width('W'); } size_t cell_width() const { return character_width() * 3; } size_t offset_margin_width() const { return 80; } |