mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-21 11:25:42 +01:00
(svn r11211) -Fix [FS#1302]: NewGRF GUI scrollbar does funny things when being resized.
This commit is contained in:
parent
1e73368d48
commit
bf35f3a21a
@ -515,6 +515,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e)
|
|||||||
case WE_RESIZE:
|
case WE_RESIZE:
|
||||||
w->vscroll.cap += e->we.sizing.diff.y / 14;
|
w->vscroll.cap += e->we.sizing.diff.y / 14;
|
||||||
w->widget[SNGRFS_FILE_LIST].data = (w->vscroll.cap << 8) + 1;
|
w->widget[SNGRFS_FILE_LIST].data = (w->vscroll.cap << 8) + 1;
|
||||||
|
SetupNewGRFWindow(w);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user