diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-27 11:01:10 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-27 11:01:10 +0000 |
commit | ec1d5478891d365e4db4da5bc0e4eb1a51779dec (patch) | |
tree | 0e1beb3106f8e27722ec2f9a2861a662e09a4207 /src/dock_gui.cpp | |
parent | f93943ebcf363b9547d8b4035c83b680fa231bb6 (diff) | |
download | openttd-ec1d5478891d365e4db4da5bc0e4eb1a51779dec.tar.xz |
(svn r11993) -Fix: Resize station/roadstop/dock/airport construction windows if cargo acceptance list is too long.
Diffstat (limited to 'src/dock_gui.cpp')
-rw-r--r-- | src/dock_gui.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp index 2c36a1616..39f40a3a2 100644 --- a/src/dock_gui.cpp +++ b/src/dock_gui.cpp @@ -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; } |