1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 15:54:31 +01:00

Use ZoomLevel for viewport and ride window

This commit is contained in:
Hielke Morsink
2021-09-28 18:09:40 +02:00
parent 95ba1654c7
commit f3735dc076
3 changed files with 5 additions and 5 deletions

View File

@@ -177,8 +177,8 @@ void viewport_create(rct_window* w, const ScreenCoordsXY& screenCoords, int32_t
viewport->height = height;
const auto zoom = focus.zoom;
viewport->view_width = width << zoom;
viewport->view_height = height << zoom;
viewport->view_width = width << static_cast<int8_t>(zoom);
viewport->view_height = height << static_cast<int8_t>(zoom);
viewport->zoom = zoom;
viewport->flags = 0;