* For all windows with viewports, ensure they do not have a zoom level less than the minimum. */
| 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 | { |
no test coverage detected