(svn r11993) -Fix: Resize station/roadstop/dock/airport construction windows if cargo acceptance list is too long.

This commit is contained in:
peter1138
2008-01-27 11:01:10 +00:00
parent 7b29dcde3c
commit 0847def759
6 changed files with 33 additions and 10 deletions

View File

@@ -254,7 +254,13 @@ static void BuildDockStationWndProc(Window *w, WindowEvent *e)
SetTileSelectSize(1, 1);
}
DrawStationCoverageAreaText(4, 50, SCT_ALL, rad);
int text_end = DrawStationCoverageAreaText(4, 50, SCT_ALL, rad) + 4;
if (text_end > w->widget[2].bottom) {
SetWindowDirty(w);
ResizeWindowForWidget(w, 2, 0, text_end - w->widget[2].bottom);
SetWindowDirty(w);
}
break;
}