1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 19:56:13 +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

@@ -801,8 +801,8 @@ namespace OpenRCT2::Ui::Windows
viewport->pos.y = top;
viewport->width = wwidth;
viewport->height = wheight;
viewport->view_width = wwidth * viewport->zoom;
viewport->view_height = wheight * viewport->zoom;
viewport->view_width = viewport->zoom.ApplyTo(wwidth);
viewport->view_height = viewport->zoom.ApplyTo(wheight);
Invalidate();
}
}