mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-18 01:42:38 +01:00
(svn r25169) [1.3] -Backport from trunk:
- Fix: Several typos/inconsistencies in English strings [FS#5496] (r25144, r25143) - Fix: When extra dynamite was disabled, towns would be allowed to clear bridges with trams (r25141) - Fix: Towns are build as OWNER_TOWN, so they also need to be removed as OWNER_TOWN otherwise parts might remain [FS#5519] (r25140) - Fix: Editboxes could become too small when resizing windows (r25121) - Fix: Game script language files did not work, when inside a tar [FS#5509] (r25117, r25114)
This commit is contained in:
@@ -2082,10 +2082,12 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, int index, uint16 data,
|
||||
this->SetFill(0, 0);
|
||||
break;
|
||||
|
||||
case WWT_EDITBOX:
|
||||
this->SetMinimalSize(10, 0);
|
||||
case WWT_EDITBOX: {
|
||||
Dimension sprite_size = GetSpriteSize(_current_text_dir == TD_RTL ? SPR_IMG_DELETE_RIGHT : SPR_IMG_DELETE_LEFT);
|
||||
this->SetMinimalSize(30 + sprite_size.width, sprite_size.height);
|
||||
this->SetFill(0, 0);
|
||||
break;
|
||||
}
|
||||
|
||||
case WWT_CAPTION:
|
||||
this->SetFill(1, 0);
|
||||
|
||||
Reference in New Issue
Block a user