1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 09:14:58 +01:00

Replace static_cast with EnumValue

This commit is contained in:
Harry Hopkinson
2024-03-04 15:37:20 +00:00
parent 9748038815
commit ef9840f29b
6 changed files with 17 additions and 16 deletions

View File

@@ -177,7 +177,7 @@ public:
SDL_WINDOW_FULLSCREEN,
SDL_WINDOW_FULLSCREEN_DESKTOP,
};
uint32_t windowFlags = _sdlFullscreenFlags[static_cast<int32_t>(mode)];
uint32_t windowFlags = _sdlFullscreenFlags[EnumValue(mode)];
// HACK Changing window size when in fullscreen usually has no effect
if (mode == FULLSCREEN_MODE::FULLSCREEN)