summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-25 15:17:16 +0000
committerskidd13 <skidd13@openttd.org>2007-11-25 15:17:16 +0000
commite3092f679177eda2ecfe5dcf05cd565cbe62c3fa (patch)
tree0f01ba1cadd6e1ebef93882080c0c26b84afadef
parent35159d5db3b9e739f640d04616f0ee131e65c70b (diff)
downloadopenttd-e3092f679177eda2ecfe5dcf05cd565cbe62c3fa.tar.xz
(svn r11522) -Fix: The scrollbar of the network gui could run out of bounds
-rw-r--r--src/network/network_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index cddd67d31..50af415a7 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -539,6 +539,8 @@ static void NetworkGameWindowWndProc(Window *w, WindowEvent *e)
w->widget[NGWW_MATRIX].data = (w->vscroll.cap << 8) + 1;
+ SetVScrollCount(w, ld->list_length);
+
int widget_width = w->widget[NGWW_FIND].right - w->widget[NGWW_FIND].left;
int space = (w->width - 4 * widget_width - 25) / 3;