1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 14:37:45 +00:00

Rename CBitmap to CharacterBitmap.

This commit is contained in:
Andreas Kling 2019-01-10 05:41:49 +01:00
parent 305aa25aae
commit e180e2553a
10 changed files with 33 additions and 33 deletions

View file

@ -22,13 +22,13 @@ Font::~Font()
{
}
const CBitmap* Font::glyphBitmap(byte ch) const
const CharacterBitmap* Font::glyphBitmap(byte ch) const
{
if (!m_bitmaps[ch]) {
if (ch < m_firstGlyph || ch > m_lastGlyph)
return nullptr;
const char* data = m_glyphs[(unsigned)ch - m_firstGlyph];
m_bitmaps[ch] = CBitmap::createFromASCII(data, m_glyphWidth, m_glyphHeight);
m_bitmaps[ch] = CharacterBitmap::createFromASCII(data, m_glyphWidth, m_glyphHeight);
}
ASSERT(ch >= m_firstGlyph && ch <= m_lastGlyph);
return m_bitmaps[ch].ptr();