diff options
author | zuu <zuu@openttd.org> | 2013-06-09 14:11:55 +0000 |
---|---|---|
committer | zuu <zuu@openttd.org> | 2013-06-09 14:11:55 +0000 |
commit | dda71a15d1c4a2a768f3e1197413b21663480591 (patch) | |
tree | 9d202cf7a0b6e54ad71c69327d46a4c36a96c867 /src/story_gui.cpp | |
parent | 6166772bc57054440a107140577ef372a8d97b9b (diff) | |
download | openttd-dda71a15d1c4a2a768f3e1197413b21663480591.tar.xz |
(svn r25380) -Fix (r25344): Vertically center images of page elements in the available vertical space
Diffstat (limited to 'src/story_gui.cpp')
-rw-r--r-- | src/story_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/story_gui.cpp b/src/story_gui.cpp index 63e5b66bf..9efee829e 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; |