1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 07:14:31 +01:00

Close #15896: Refactor out the ZoomLevel operators

This commit is contained in:
Hielke Morsink
2022-02-26 23:14:59 +01:00
committed by GitHub
parent f27d0ff3b0
commit ba85cf4873
23 changed files with 136 additions and 135 deletions

View File

@@ -2105,8 +2105,8 @@ void TrackDesignDrawPreview(TrackDesign* td6, uint8_t* pixels)
zoom_level = ZoomLevel{ 3 };
}
size_x = 370 * zoom_level;
size_y = 217 * zoom_level;
size_x = zoom_level.ApplyTo(370);
size_y = zoom_level.ApplyTo(217);
rct_viewport view;
view.width = 370;