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