From d460e047e260544424348180d0e2dac904f2a4fa Mon Sep 17 00:00:00 2001 From: zuu Date: Sun, 9 Jun 2013 14:11:55 +0000 Subject: [PATCH] (svn r25380) -Fix (r25344): Vertically center images of page elements in the available vertical space --- src/story_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/story_gui.cpp b/src/story_gui.cpp index 63e5b66bfe..9efee829ec 100644 --- a/src/story_gui.cpp +++ b/src/story_gui.cpp @@ -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;