Changeset - r22667:39940ab1c009
[Not reviewed]
master
0 1 0
frosch - 7 years ago 2017-07-11 19:34:41
frosch@openttd.org
(svn r27888) -Fix: Member access coding style (adf88)
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/fontcache.cpp
Show inline comments
 
@@ -41,7 +41,7 @@ FontCache::FontCache(FontSize fs) : pare
 
		ascender(_default_font_ascender[fs]), descender(_default_font_ascender[fs] - _default_font_height[fs]),
 
		units_per_em(1)
 
{
 
	assert(parent == NULL || this->fs == parent->fs);
 
	assert(this->parent == NULL || this->fs == this->parent->fs);
 
	FontCache::caches[this->fs] = this;
 
	Layouter::ResetFontCache(this->fs);
 
}
 
@@ -49,7 +49,7 @@ FontCache::FontCache(FontSize fs) : pare
 
/** Clean everything up. */
 
FontCache::~FontCache()
 
{
 
	assert(this->fs == parent->fs);
 
	assert(this->fs == this->parent->fs);
 
	FontCache::caches[this->fs] = this->parent;
 
	Layouter::ResetFontCache(this->fs);
 
}
 
@@ -474,7 +474,7 @@ static bool GetFontAAState(FontSize size
 

	
 
const Sprite *FreeTypeFontCache::GetGlyph(GlyphID key)
 
{
 
	if ((key & SPRITE_GLYPH) != 0) return parent->GetGlyph(key);
 
	if ((key & SPRITE_GLYPH) != 0) return this->parent->GetGlyph(key);
 

	
 
	/* Check for the glyph in our cache */
 
	GlyphEntry *glyph = this->GetGlyphPtr(key);
0 comments (0 inline, 0 general)