CodeQL bot : Variable result hides another variable of the same name (on ).

This commit is contained in:
SuperUserNameMan 2024-07-17 18:47:50 +02:00 committed by GitHub
parent 2d225145d7
commit a2ccd820e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1726,8 +1726,8 @@ int InitPlatform(void)
// We don't use `ToggleFullscreen()` directly because `CORE.Window.fullscreen` is already set to `true`, // We don't use `ToggleFullscreen()` directly because `CORE.Window.fullscreen` is already set to `true`,
// and `ToggleFullscreen()` would think it is already in fullscreen mode. // and `ToggleFullscreen()` would think it is already in fullscreen mode.
bool result = _ActivateHardwareFullscreenMode(monitorIndex, CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE); bool _result = _ActivateHardwareFullscreenMode(monitorIndex, CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE);
if ( result == false ) if ( _result == false )
{ {
TRACELOG(LOG_WARNING,"DISPLAY: failed to activate fullscreen mode."); TRACELOG(LOG_WARNING,"DISPLAY: failed to activate fullscreen mode.");
// We don't close the window, nor terminate GLFW, nor interrupt the paltform intialization because it is just a warning. // We don't close the window, nor terminate GLFW, nor interrupt the paltform intialization because it is just a warning.