MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / WindowCheckAllValidZoom

Function WindowCheckAllValidZoom

src/openrct2/interface/Window.cpp:426–434  ·  view source on GitHub ↗

* For all windows with viewports, ensure they do not have a zoom level less than the minimum. */

Source from the content-addressed store, hash-verified

424 * For all windows with viewports, ensure they do not have a zoom level less than the minimum.
425 */
426 void WindowCheckAllValidZoom()
427 {
428 WindowVisitEach([](WindowBase* w) {
429 if (w->viewport != nullptr && w->viewport->zoom < ZoomLevel::min())
430 {
431 WindowZoomSet(*w, ZoomLevel::min(), false);
432 }
433 });
434 }
435
436 void WindowZoomSet(WindowBase& w, ZoomLevel zoomLevel, bool atCursor)
437 {

Callers 1

Calls 2

WindowVisitEachFunction · 0.85
WindowZoomSetFunction · 0.85

Tested by

no test coverage detected