summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2014-10-14 16:09:21 +0000
committerpeter1138 <peter1138@openttd.org>2014-10-14 16:09:21 +0000
commit2b46a4ae1de4b866b3f26a3a8a1fe1d3439c8920 (patch)
tree8061e50894155a57f5a5b96c309c76965af54306
parent2eb38ef9e950687c59d44d9805f1254f9f9bd04a (diff)
downloadopenttd-2b46a4ae1de4b866b3f26a3a8a1fe1d3439c8920.tar.xz
(svn r27016) -Fix (r27004): Setting font-sprite data failed for some user(s).
-rw-r--r--src/spritecache.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/spritecache.cpp b/src/spritecache.cpp
index 764616e8f..908e7599a 100644
--- a/src/spritecache.cpp
+++ b/src/spritecache.cpp
@@ -445,11 +445,11 @@ static void *ReadSprite(const SpriteCache *sc, SpriteID id, SpriteType sprite_ty
if (sprite->type == ST_FONT && ZOOM_LVL_GUI != ZOOM_LVL_NORMAL) {
/* Make ZOOM_LVL_GUI be ZOOM_LVL_NORMAL */
- sprite[ZOOM_LVL_NORMAL] = sprite[ZOOM_LVL_GUI];
- sprite->width = sprite[ZOOM_LVL_NORMAL].width;
- sprite->height = sprite[ZOOM_LVL_NORMAL].height;
- sprite->x_offs = sprite[ZOOM_LVL_NORMAL].x_offs;
- sprite->y_offs = sprite[ZOOM_LVL_NORMAL].y_offs;
+ sprite[ZOOM_LVL_NORMAL].width = sprite[ZOOM_LVL_GUI].width;
+ sprite[ZOOM_LVL_NORMAL].height = sprite[ZOOM_LVL_GUI].height;
+ sprite[ZOOM_LVL_NORMAL].x_offs = sprite[ZOOM_LVL_GUI].x_offs;
+ sprite[ZOOM_LVL_NORMAL].y_offs = sprite[ZOOM_LVL_GUI].y_offs;
+ sprite[ZOOM_LVL_NORMAL].data = sprite[ZOOM_LVL_GUI].data;
}
return BlitterFactory::GetCurrentBlitter()->Encode(sprite, allocator);