From c471ddf4b69579a9e05eafe1b4156c7012cc89d7 Mon Sep 17 00:00:00 2001 From: bjarni Date: Thu, 31 Aug 2006 13:28:59 +0000 Subject: [PATCH] (svn r6269) -Fix r6240: fixed incorrect row count in vehicle lists when resizing to smaller windows (AsterixMG) --- vehicle_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vehicle_gui.c b/vehicle_gui.c index fede02861a..895581a6d4 100644 --- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -1487,7 +1487,7 @@ void PlayerVehWndProc(Window *w, WindowEvent *e) case WE_RESIZE: /* Update the scroll + matrix */ if (vehicle_type == VEH_Train) w->hscroll.cap += e->sizing.diff.x; - w->vscroll.cap += e->sizing.diff.y / w->resize.step_height; + w->vscroll.cap += e->sizing.diff.y / (int)w->resize.step_height; w->widget[7].unkA = (w->vscroll.cap << 8) + 1; break; }