mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:47:35 +00:00
Improve KeyEvent a bit.
Now it has a text() which is what you'll usually want.
This commit is contained in:
parent
fb4ae12bc2
commit
b999a77d0f
6 changed files with 62 additions and 11 deletions
|
@ -30,5 +30,6 @@ const CBitmap* Font::glyphBitmap(byte ch) const
|
|||
const char* data = m_glyphs[(unsigned)ch - m_firstGlyph];
|
||||
m_bitmaps[ch] = CBitmap::createFromASCII(data, m_glyphWidth, m_glyphHeight);
|
||||
}
|
||||
ASSERT(ch >= m_firstGlyph && ch <= m_lastGlyph);
|
||||
return m_bitmaps[ch].ptr();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue