1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 15:23:01 +01:00

Introduce VIEWPORT_FLAG_RENDERING_INHIBITED

This commit is contained in:
Aaron van Geffen
2024-07-15 01:17:57 +02:00
parent 3618f9a8a7
commit ef7dbe496a
8 changed files with 44 additions and 5 deletions

View File

@@ -101,6 +101,19 @@ void WindowVisitEach(std::function<void(WindowBase*)> func)
}
}
void WindowSetFlagForAllViewports(uint32_t viewportFlag, bool enabled)
{
WindowVisitEach([&](WindowBase* w) {
if (w->viewport != nullptr)
{
if (enabled)
w->viewport->flags |= viewportFlag;
else
w->viewport->flags &= ~viewportFlag;
}
});
}
/**
*
* rct2: 0x006ED7B0