1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00

Widen WindowFlags to 32 bits

This commit is contained in:
Gymnasiast
2025-04-19 14:07:02 +02:00
parent 293ca0db33
commit 734c0959ef
5 changed files with 16 additions and 14 deletions

View File

@@ -838,7 +838,7 @@ public:
WindowBase* Create(
std::unique_ptr<WindowBase>&& wp, WindowClass cls, ScreenCoordsXY pos, int32_t width, int32_t height,
uint32_t flags) override
WindowFlags flags) override
{
height += wp->getTitleBarDiffTarget();
@@ -1070,7 +1070,7 @@ public:
/**
* Closes all windows, save for those having any of the passed flags.
*/
void CloseAllExceptFlags(uint16_t flags) override
void CloseAllExceptFlags(WindowFlags flags) override
{
CloseByCondition([flags](WindowBase* w) -> bool { return !(w->flags & flags); });
}
@@ -1347,7 +1347,7 @@ public:
return &w;
}
WindowBase* BringToFrontByClassWithFlags(WindowClass cls, uint16_t flags) override
WindowBase* BringToFrontByClassWithFlags(WindowClass cls, WindowFlags flags) override
{
WindowBase* w = FindByClass(cls);
if (w != nullptr)