summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-10-05 21:31:59 +0000
committerrubidium <rubidium@openttd.org>2007-10-05 21:31:59 +0000
commitbf35f3a21a7eed4d4f6c7714e65cdce23e535db9 (patch)
treed84ad1060cdd9dc9ae6fb1314f715040b803e85a
parent1e73368d4870ca9ab28a7051b7e59e8949001670 (diff)
downloadopenttd-bf35f3a21a7eed4d4f6c7714e65cdce23e535db9.tar.xz
(svn r11211) -Fix [FS#1302]: NewGRF GUI scrollbar does funny things when being resized.
-rw-r--r--src/newgrf_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 224236a0a..453673fc5 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -515,6 +515,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e)
case WE_RESIZE:
w->vscroll.cap += e->we.sizing.diff.y / 14;
w->widget[SNGRFS_FILE_LIST].data = (w->vscroll.cap << 8) + 1;
+ SetupNewGRFWindow(w);
break;
}
}