mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r6269) -Fix r6240: fixed incorrect row count in vehicle lists when resizing to smaller windows (AsterixMG)
This commit is contained in:
parent
d3f5b7da3e
commit
68e0703226
|
@ -1487,7 +1487,7 @@ void PlayerVehWndProc(Window *w, WindowEvent *e)
|
||||||
case WE_RESIZE:
|
case WE_RESIZE:
|
||||||
/* Update the scroll + matrix */
|
/* Update the scroll + matrix */
|
||||||
if (vehicle_type == VEH_Train) w->hscroll.cap += e->sizing.diff.x;
|
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;
|
w->widget[7].unkA = (w->vscroll.cap << 8) + 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue