summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/town_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index a2ac0bafe..2d9be9359 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -406,7 +406,7 @@ public:
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 @@ public:
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;