diff options
author | michi_cc <michi_cc@openttd.org> | 2012-02-04 13:29:13 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2012-02-04 13:29:13 +0000 |
commit | e85d5b5d316b888c6013e1d590d88e0da201a1e6 (patch) | |
tree | bbfcd0df9d8985bb51aca4ef94fa92eeeda62c49 /src/fontcache.cpp | |
parent | 2909e39e99aac74b124aee113dd4fa3f430d9d6c (diff) | |
download | openttd-e85d5b5d316b888c6013e1d590d88e0da201a1e6.tar.xz |
(svn r23889) -Codechange: Centralise sprite resizing in one place. (peter1138)
Diffstat (limited to 'src/fontcache.cpp')
-rw-r--r-- | src/fontcache.cpp | 2 |
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; |