diff options
author | bjarni <bjarni@openttd.org> | 2006-08-31 13:28:59 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-08-31 13:28:59 +0000 |
commit | 68e070322644913ce9a34204856505e735cdf308 (patch) | |
tree | b03f5affeca0e08d5c91336432af7ffc40c2b4ed | |
parent | d3f5b7da3ea3079511d75438131bedfd98586b05 (diff) | |
download | openttd-68e070322644913ce9a34204856505e735cdf308.tar.xz |
(svn r6269) -Fix r6240: fixed incorrect row count in vehicle lists when resizing to smaller windows (AsterixMG)
-rw-r--r-- | vehicle_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c index fede02861..895581a6d 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; } |