Mercurial > hg > openttd
changeset 4698:e3bdf05d3190 draft
(svn r6608) - Fix (r6601): The scroll bar could fall out of the window... more gui-fu needed...
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Sun, 01 Oct 2006 15:03:15 +0000 |
parents | 99dc3b6d7752 |
children | 7e4b598af42b |
files | vehicle_gui.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -333,10 +333,11 @@ free(WP(w, refit_d).list); WP(w, refit_d).list = BuildRefitList(v); WP(w, refit_d).length = length; - SetVScrollCount(w, WP(w, refit_d).list->num_lines); } } + SetVScrollCount(w, WP(w, refit_d).list->num_lines); + SetDParam(0, v->string_id); SetDParam(1, v->unitnumber); DrawWindowWidgets(w);