(svn r26973) [1.4] -Backport from trunk:
- Fix: Image widgets stored 32bit SpriteID in uint16 (r26971) - Fix: Compilation on HAIKU (r26922) - Fix: Crash when enabling 'Full animation' if multiplayer chat text is on screen [FS#6096] (r26919) - Fix: Height computation of game script text in town GUI did not consider margins [FS#6119] (r26859)
This commit is contained in:
@@ -407,7 +407,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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -485,7 +485,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;
|
||||
|
||||
Reference in New Issue
Block a user