summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);