diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-27 05:14:15 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-27 05:19:00 +0100 |
commit | c7b005c47b810502bd809eaed81413e439e0a307 (patch) | |
tree | 0fdf82d03af133fc269f122d30594c44cbe0b2a1 /SharedGraphics/Font.h | |
parent | 2e370fa4d5d3cadd58182be18b9aeb59e32ef58e (diff) | |
download | serenity-c7b005c47b810502bd809eaed81413e439e0a307.zip |
Font: Eagerly load all 256 glyphs. It's not that many.
Diffstat (limited to 'SharedGraphics/Font.h')
-rw-r--r-- | SharedGraphics/Font.h | 3 |
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; } |