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