summaryrefslogtreecommitdiff
path: root/src/fontcache.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-02-04 13:29:13 +0000
committermichi_cc <michi_cc@openttd.org>2012-02-04 13:29:13 +0000
commite85d5b5d316b888c6013e1d590d88e0da201a1e6 (patch)
treebbfcd0df9d8985bb51aca4ef94fa92eeeda62c49 /src/fontcache.cpp
parent2909e39e99aac74b124aee113dd4fa3f430d9d6c (diff)
downloadopenttd-e85d5b5d316b888c6013e1d590d88e0da201a1e6.tar.xz
(svn r23889) -Codechange: Centralise sprite resizing in one place. (peter1138)
Diffstat (limited to 'src/fontcache.cpp')
-rw-r--r--src/fontcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index d35419597..bed9bc4b0 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -1152,7 +1152,7 @@ const Sprite *GetGlyph(FontSize size, WChar key)
if (width > 256 || height > 256) usererror("Font glyph is too large");
/* FreeType has rendered the glyph, now we allocate a sprite and copy the image into it */
- sprite.AllocateData(width * height);
+ sprite.AllocateData(ZOOM_LVL_NORMAL, width * height);
sprite.type = ST_FONT;
sprite.width = width;
sprite.height = height;