mirror of https://github.com/OpenTTD/OpenTTD.git
Codechange: Add missing 'override'.
This commit is contained in:
parent
2ff4248032
commit
c84fd30317
|
@ -23,16 +23,16 @@ private:
|
||||||
public:
|
public:
|
||||||
SpriteFontCache(FontSize fs);
|
SpriteFontCache(FontSize fs);
|
||||||
~SpriteFontCache();
|
~SpriteFontCache();
|
||||||
virtual void SetUnicodeGlyph(char32_t key, SpriteID sprite);
|
void SetUnicodeGlyph(char32_t key, SpriteID sprite) override;
|
||||||
virtual void InitializeUnicodeGlyphMap();
|
void InitializeUnicodeGlyphMap() override;
|
||||||
virtual void ClearFontCache();
|
void ClearFontCache() override;
|
||||||
virtual const Sprite *GetGlyph(GlyphID key);
|
const Sprite *GetGlyph(GlyphID key) override;
|
||||||
virtual uint GetGlyphWidth(GlyphID key);
|
uint GetGlyphWidth(GlyphID key) override;
|
||||||
virtual bool GetDrawGlyphShadow();
|
bool GetDrawGlyphShadow() override;
|
||||||
virtual GlyphID MapCharToGlyph(char32_t key) { assert(IsPrintable(key)); return SPRITE_GLYPH | key; }
|
GlyphID MapCharToGlyph(char32_t key) override { assert(IsPrintable(key)); return SPRITE_GLYPH | key; }
|
||||||
const void *GetFontTable(uint32_t, size_t &length) override { length = 0; return nullptr; }
|
const void *GetFontTable(uint32_t, size_t &length) override { length = 0; return nullptr; }
|
||||||
virtual std::string GetFontName() { return "sprite"; }
|
std::string GetFontName() override { return "sprite"; }
|
||||||
virtual bool IsBuiltInFont() { return true; }
|
bool IsBuiltInFont() override { return true; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* SPRITEFONTCACHE_H */
|
#endif /* SPRITEFONTCACHE_H */
|
||||||
|
|
Loading…
Reference in New Issue