Changeset - r27949:b540fe408bc9
[Not reviewed]
master
0 1 0
frosch - 15 months ago 2023-09-17 17:56:54
frosch@openttd.org
Codechange: Add missing 'override'.
1 file changed with 9 insertions and 9 deletions:
0 comments (0 inline, 0 general)
src/fontcache/spritefontcache.h
Show inline comments
 
@@ -23,16 +23,16 @@ private:
 
public:
 
	SpriteFontCache(FontSize fs);
 
	~SpriteFontCache();
 
	virtual void SetUnicodeGlyph(char32_t key, SpriteID sprite);
 
	virtual void InitializeUnicodeGlyphMap();
 
	virtual void ClearFontCache();
 
	virtual const Sprite *GetGlyph(GlyphID key);
 
	virtual uint GetGlyphWidth(GlyphID key);
 
	virtual bool GetDrawGlyphShadow();
 
	virtual GlyphID MapCharToGlyph(char32_t key) { assert(IsPrintable(key)); return SPRITE_GLYPH | key; }
 
	void SetUnicodeGlyph(char32_t key, SpriteID sprite) override;
 
	void InitializeUnicodeGlyphMap() override;
 
	void ClearFontCache() override;
 
	const Sprite *GetGlyph(GlyphID key) override;
 
	uint GetGlyphWidth(GlyphID key) override;
 
	bool GetDrawGlyphShadow() override;
 
	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; }
 
	virtual std::string GetFontName() { return "sprite"; }
 
	virtual bool IsBuiltInFont() { return true; }
 
	std::string GetFontName() override { return "sprite"; }
 
	bool IsBuiltInFont() override { return true; }
 
};
 

	
 
#endif /* SPRITEFONTCACHE_H */
0 comments (0 inline, 0 general)