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