diff options
author | peter1138 <peter1138@openttd.org> | 2011-11-24 12:26:44 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2011-11-24 12:26:44 +0000 |
commit | 15d0a22aac6b90a2055e68d019cab4350376a8fd (patch) | |
tree | 0b94b0f8551f81dcdf924ce628d1a674d7a8fb63 /src/fontcache.cpp | |
parent | 4e97261315211c65459b91685537f82e5c454604 (diff) | |
download | openttd-15d0a22aac6b90a2055e68d019cab4350376a8fd.tar.xz |
(svn r23315) -Codechange: Only encode sprites for zoom levels that will be used.
Diffstat (limited to 'src/fontcache.cpp')
-rw-r--r-- | src/fontcache.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp index 507ee2940..2e1882147 100644 --- a/src/fontcache.cpp +++ b/src/fontcache.cpp @@ -1113,6 +1113,7 @@ const Sprite *GetGlyph(FontSize size, WChar key) /* FreeType has rendered the glyph, now we allocate a sprite and copy the image into it */ sprite.AllocateData(width * height); + sprite.type = ST_FONT; sprite.width = width; sprite.height = height; sprite.x_offs = slot->bitmap_left; |