Use resize.step_height, so the height of each element doesn't need to be FONT_HEIGHT_NORMAL.

This commit is contained in:
Juanjo
2013-06-26 20:13:41 +02:00
committed by pelya
parent b5ea121dbc
commit 829c5f8dd2
+2 -2
View File
@@ -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;