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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user