(svn r11522) -Fix: The scrollbar of the network gui could run out of bounds

This commit is contained in:
skidd13 2007-11-25 15:17:16 +00:00
parent 35159d5db3
commit e3092f6791

View File

@ -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;