From 829c5f8dd2b36213065c77217181daed55a87b07 Mon Sep 17 00:00:00 2001 From: Juanjo Date: Wed, 26 Jun 2013 20:13:41 +0200 Subject: [PATCH] Use resize.step_height, so the height of each element doesn't need to be FONT_HEIGHT_NORMAL. --- src/town_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/town_gui.cpp b/src/town_gui.cpp index a36919ad98..7dd009d885 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -202,7 +202,7 @@ public: if (--pos < 0) { DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, y, STR_LOCAL_AUTHORITY_ACTIONS_TITLE); - y += FONT_HEIGHT_NORMAL; + y += this->resize.step_height; } for (int i = 0; buttons; i++, buttons >>= 1) { @@ -211,7 +211,7 @@ public: if ((buttons & 1) && --pos < 0) { DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, y, STR_LOCAL_AUTHORITY_ACTION_SMALL_ADVERTISING_CAMPAIGN + i, this->sel_index == i ? TC_WHITE : TC_ORANGE); - y += FONT_HEIGHT_NORMAL; + y += this->resize.step_height; } } break;