Mercurial > hg > openttd
changeset 7966:513c67153f34 draft
(svn r11522) -Fix: The scrollbar of the network gui could run out of bounds
author | skidd13 <skidd13@openttd.org> |
---|---|
date | Sun, 25 Nov 2007 15:17:16 +0000 |
parents | c4ef1371c850 |
children | e30c5ec2d272 |
files | src/network/network_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -539,6 +539,8 @@ 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;