Index: src/town_gui.cpp
===================================================================
--- src/town_gui.cpp (revision 26858)
+++ src/town_gui.cpp (working copy)
@@ -406,7 +406,7 @@
if (this->town->text != NULL) {
SetDParamStr(0, this->town->text);
- DrawStringMultiLine(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_LEFT, y += FONT_HEIGHT_NORMAL, UINT16_MAX, STR_JUST_RAW_STRING, TC_BLACK);
+ DrawStringMultiLine(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, y += FONT_HEIGHT_NORMAL, UINT16_MAX, STR_JUST_RAW_STRING, TC_BLACK);
}
}
@@ -484,7 +484,7 @@
if (this->town->text != NULL) {
SetDParamStr(0, this->town->text);
- aimed_height += GetStringHeight(STR_JUST_RAW_STRING, width);
+ aimed_height += GetStringHeight(STR_JUST_RAW_STRING, width - WD_FRAMERECT_LEFT - WD_FRAMERECT_RIGHT);
}
return aimed_height;