Changeset - r21864:34db5dbbcaa6
[Not reviewed]
master
0 1 0
peter1138 - 10 years ago 2014-10-14 16:09:21
peter1138@openttd.org
(svn r27016) -Fix (r27004): Setting font-sprite data failed for some user(s).
1 file changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/spritecache.cpp
Show inline comments
 
@@ -445,11 +445,11 @@ static void *ReadSprite(const SpriteCach
 

	
 
	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);
0 comments (0 inline, 0 general)