1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-26 21:54:22 +01:00

(svn r23315) -Codechange: Only encode sprites for zoom levels that will be used.

This commit is contained in:
peter1138
2011-11-24 12:26:44 +00:00
parent 4e97261315
commit 15d0a22aac
7 changed files with 59 additions and 7 deletions

View File

@@ -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;