diff options
author | frosch <frosch@openttd.org> | 2017-07-11 19:34:41 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2017-07-11 19:34:41 +0000 |
commit | 64c5f00429da45e9aafbffd001379012543504c5 (patch) | |
tree | 9239f4dc86b3d56cd6cb5336c6322ac1d7b8aad1 /src/fontcache.cpp | |
parent | 3eae9aba797360e2f1e3ff16fa42876db587502d (diff) | |
download | openttd-64c5f00429da45e9aafbffd001379012543504c5.tar.xz |
(svn r27888) -Fix: Member access coding style (adf88)
Diffstat (limited to 'src/fontcache.cpp')
-rw-r--r-- | src/fontcache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp index 6bea59c10..85e5a92cc 100644 --- a/src/fontcache.cpp +++ b/src/fontcache.cpp @@ -41,7 +41,7 @@ FontCache::FontCache(FontSize fs) : parent(FontCache::Get(fs)), fs(fs), height(_ 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) : parent(FontCache::Get(fs)), fs(fs), height(_ /** 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); |