summaryrefslogtreecommitdiff
path: root/Libraries/LibDraw/Font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibDraw/Font.cpp')
-rw-r--r--Libraries/LibDraw/Font.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibDraw/Font.cpp b/Libraries/LibDraw/Font.cpp
index bd51520765..684af5aeed 100644
--- a/Libraries/LibDraw/Font.cpp
+++ b/Libraries/LibDraw/Font.cpp
@@ -181,10 +181,10 @@ int Font::glyph_or_emoji_width(u32 codepoint) const
if (m_fixed_width)
return m_glyph_width;
- auto emoji = Emoji::emoji_for_codepoint(codepoint);
+ auto* emoji = Emoji::emoji_for_codepoint(codepoint);
if (emoji == nullptr)
return glyph_width('?');
- return emoji->bitmap().size().width();
+ return emoji->size().width();
}
int Font::width(const StringView& string) const