summaryrefslogtreecommitdiff
path: root/SharedGraphics/Font.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-27 05:14:15 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-27 05:19:00 +0100
commitc7b005c47b810502bd809eaed81413e439e0a307 (patch)
tree0fdf82d03af133fc269f122d30594c44cbe0b2a1 /SharedGraphics/Font.h
parent2e370fa4d5d3cadd58182be18b9aeb59e32ef58e (diff)
downloadserenity-c7b005c47b810502bd809eaed81413e439e0a307.zip
Font: Eagerly load all 256 glyphs. It's not that many.
Diffstat (limited to 'SharedGraphics/Font.h')
-rw-r--r--SharedGraphics/Font.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/SharedGraphics/Font.h b/SharedGraphics/Font.h
index 60b3863445..10e35e6bcf 100644
--- a/SharedGraphics/Font.h
+++ b/SharedGraphics/Font.h
@@ -11,8 +11,7 @@ public:
~Font();
- const CharacterBitmap* glyph_bitmap(byte) const;
- const CharacterBitmap* error_bitmap() const { return m_error_bitmap.ptr(); }
+ const CharacterBitmap& glyph_bitmap(char ch) const { return *m_bitmaps[(byte)ch]; }
byte glyph_width() const { return m_glyph_width; }
byte glyph_height() const { return m_glyph_height; }