36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From 35dca6035b51dcaf5519e7cd20dbc1671b4a9bbd Mon Sep 17 00:00:00 2001
|
|
From: Juanjo <juanjo.ng.83@gmail.com>
|
|
Date: Wed, 26 Jun 2013 20:13:41 +0200
|
|
Subject: [PATCH 178/249] 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 f575839..b00be1a 100644
|
|
--- a/src/town_gui.cpp
|
|
+++ b/src/town_gui.cpp
|
|
@@ -203,7 +203,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) {
|
|
@@ -212,7 +212,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;
|
|
--
|
|
1.8.1.2
|
|
|