Skip to content

Commit

Permalink
CodeQL bot : Variable result hides another variable of the same nam…
Browse files Browse the repository at this point in the history
…e (on ).
  • Loading branch information
SuperUserNameMan authored Jul 17, 2024
1 parent 2d22514 commit a2ccd82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platforms/rcore_desktop_glfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1726,8 +1726,8 @@ int InitPlatform(void)
// 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.

bool result = _ActivateHardwareFullscreenMode(monitorIndex, CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE);
if ( result == false )
bool _result = _ActivateHardwareFullscreenMode(monitorIndex, CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE);
if ( _result == false )
{
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.
Expand Down

0 comments on commit a2ccd82

Please sign in to comment.