mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r26859) -Fix [FS#6119]: Height computation of game script text in town GUI did not consider margins.
This commit is contained in:
parent
e353ef5908
commit
c4fcc8d2aa
@ -406,7 +406,7 @@ public:
|
|||||||
|
|
||||||
if (this->town->text != NULL) {
|
if (this->town->text != NULL) {
|
||||||
SetDParamStr(0, this->town->text);
|
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) {
|
if (this->town->text != NULL) {
|
||||||
SetDParamStr(0, this->town->text);
|
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;
|
return aimed_height;
|
||||||
|
Loading…
Reference in New Issue
Block a user