1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2025-12-22 04:32:47 +01:00

Codechange: Use EnumBitSet for WindowFlags.

This commit is contained in:
Peter Nelson
2025-01-29 23:36:47 +00:00
committed by Peter Nelson
parent 248f369e86
commit efb05396a7
21 changed files with 81 additions and 80 deletions

View File

@@ -322,7 +322,7 @@ struct SelectGameWindow : public Window {
changed |= wid->UpdateMultilineWidgetSize(GetString(STR_INTRO_TRANSLATION), 3);
}
if (changed) this->ReInit(0, 0, this->flags & WF_CENTERED);
if (changed) this->ReInit(0, 0, this->flags.Test(WindowFlag::Centred));
}
void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override