mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r11522) -Fix: The scrollbar of the network gui could run out of bounds
This commit is contained in:
parent
35159d5db3
commit
e3092f6791
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user