(svn r6608) - Fix (r6601): The scroll bar could fall out of the window... more gui-fu needed...
This commit is contained in:
@@ -333,10 +333,11 @@ static void VehicleRefitWndProc(Window *w, WindowEvent *e)
|
|||||||
free(WP(w, refit_d).list);
|
free(WP(w, refit_d).list);
|
||||||
WP(w, refit_d).list = BuildRefitList(v);
|
WP(w, refit_d).list = BuildRefitList(v);
|
||||||
WP(w, refit_d).length = length;
|
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(0, v->string_id);
|
||||||
SetDParam(1, v->unitnumber);
|
SetDParam(1, v->unitnumber);
|
||||||
DrawWindowWidgets(w);
|
DrawWindowWidgets(w);
|
||||||
|
Reference in New Issue
Block a user