Changeset - r20367:b35f79d8d705
[Not reviewed]
master
0 1 0
zuu - 11 years ago 2013-06-09 14:11:55
zuu@openttd.org
(svn r25380) -Fix (r25344): Vertically center images of page elements in the available vertical space
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/story_gui.cpp
Show inline comments
 
@@ -379,7 +379,7 @@ protected:
 
		uint sprite_top = y_offset + (element_height - sprite_dim.height) / 2;
 
		uint text_top = y_offset + (element_height - line_height) / 2;
 

	
 
		DrawSprite(action_sprite, PAL_NONE, 0, y_offset);
 
		DrawSprite(action_sprite, PAL_NONE, 0, sprite_top);
 
		DrawString(sprite_dim.width + WD_FRAMETEXT_LEFT, width, text_top, STR_JUST_RAW_STRING, TC_BLACK);
 

	
 
		y_offset += element_height;
0 comments (0 inline, 0 general)