summaryrefslogtreecommitdiff
path: root/src
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
commit2bf2be987d414e2d80a20b7ace9ad9bde90fc7b8 (patch)
tree0f01ba1cadd6e1ebef93882080c0c26b84afadef /src
parent1d5010edf96789140f65c0495495a24c53b5ba1b (diff)
downloadopenttd-2bf2be987d414e2d80a20b7ace9ad9bde90fc7b8.tar.xz
(svn r11522) -Fix: The scrollbar of the network gui could run out of bounds
Diffstat (limited to 'src')
-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;