diff options
author | Einar Johan Trøan Sømåen | 2012-12-02 07:25:12 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-12-02 07:25:12 +0100 |
commit | 4efd40e41eb44e13c28b73c4eb06b3d2105f88e0 (patch) | |
tree | 7e3671f6a7edf5f8a640e87e91013aa444c1cda3 /engines/wintermute/base/font/base_font_truetype.h | |
parent | 8c4beffdf05126c5798e23ef78e1cc98face1256 (diff) | |
download | scummvm-rg350-4efd40e41eb44e13c28b73c4eb06b3d2105f88e0.tar.gz scummvm-rg350-4efd40e41eb44e13c28b73c4eb06b3d2105f88e0.tar.bz2 scummvm-rg350-4efd40e41eb44e13c28b73c4eb06b3d2105f88e0.zip |
WINTERMUTE: Make the TTF-cache actually use LRU.
Diffstat (limited to 'engines/wintermute/base/font/base_font_truetype.h')
-rw-r--r-- | engines/wintermute/base/font/base_font_truetype.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/wintermute/base/font/base_font_truetype.h b/engines/wintermute/base/font/base_font_truetype.h index 02dca7439f..2b69d1655d 100644 --- a/engines/wintermute/base/font/base_font_truetype.h +++ b/engines/wintermute/base/font/base_font_truetype.h @@ -54,6 +54,7 @@ private: int _priority; int _textOffset; bool _marked; + uint32 _lastUsed; BaseCachedTTFontText() { //_text = L""; @@ -61,8 +62,8 @@ private: _width = _maxHeight = _maxLength = -1; _align = TAL_LEFT; _surface = NULL; - _priority = -1; _textOffset = 0; + _lastUsed = 0; _marked = false; } |