mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 14:02:59 +01:00
Use zoomlevel some more
This commit is contained in:
@@ -175,10 +175,10 @@ void viewport_create(rct_window* w, const ScreenCoordsXY& screenCoords, int32_t
|
||||
viewport->pos = screenCoords;
|
||||
viewport->width = width;
|
||||
viewport->height = height;
|
||||
const auto zoom = focus.zoom;
|
||||
|
||||
viewport->view_width = width << static_cast<int8_t>(zoom);
|
||||
viewport->view_height = height << static_cast<int8_t>(zoom);
|
||||
const auto zoom = focus.zoom;
|
||||
viewport->view_width = width * zoom;
|
||||
viewport->view_height = height * zoom;
|
||||
viewport->zoom = zoom;
|
||||
viewport->flags = 0;
|
||||
|
||||
|
||||
@@ -2099,7 +2099,7 @@ void TrackDesignDrawPreview(TrackDesign* td6, uint8_t* pixels)
|
||||
size_z = 0;
|
||||
}
|
||||
|
||||
int32_t zoom_level = 1;
|
||||
ZoomLevel zoom_level = 1;
|
||||
|
||||
if (size_x < size_y)
|
||||
{
|
||||
@@ -2116,8 +2116,8 @@ void TrackDesignDrawPreview(TrackDesign* td6, uint8_t* pixels)
|
||||
zoom_level = 3;
|
||||
}
|
||||
|
||||
size_x = 370 << zoom_level;
|
||||
size_y = 217 << zoom_level;
|
||||
size_x = 370 * zoom_level;
|
||||
size_y = 217 * zoom_level;
|
||||
|
||||
rct_viewport view;
|
||||
view.width = 370;
|
||||
|
||||
Reference in New Issue
Block a user