1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Update implicit zoom conversions

This commit is contained in:
Hielke Morsink
2021-09-29 20:04:56 +02:00
parent fdce5df6db
commit 53d9bfa8b4
54 changed files with 121 additions and 107 deletions

View File

@@ -2099,8 +2099,7 @@ void TrackDesignDrawPreview(TrackDesign* td6, uint8_t* pixels)
size_z = 0;
}
ZoomLevel zoom_level = 1;
ZoomLevel zoom_level{ 1 };
if (size_x < size_y)
{
size_x = size_y;
@@ -2108,12 +2107,12 @@ void TrackDesignDrawPreview(TrackDesign* td6, uint8_t* pixels)
if (size_x > 1000 || size_z > 280)
{
zoom_level = 2;
zoom_level = ZoomLevel{ 2 };
}
if (size_x > 1600 || size_z > 1000)
{
zoom_level = 3;
zoom_level = ZoomLevel{ 3 };
}
size_x = 370 * zoom_level;