Skip to content

Commit

Permalink
Fix variable declaration for C89 compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
zturtleman committed Jun 28, 2015
1 parent 61825d8 commit da8a74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/sdl/sdl_glimp.c
Expand Up @@ -134,9 +134,9 @@ static void GLimp_DetectAvailableModes(void)
SDL_Rect *modes;
int numModes = 0;

SDL_DisplayMode windowMode;
int display = SDL_GetWindowDisplayIndex( SDL_window );
numSDLModes = SDL_GetNumDisplayModes( display );
SDL_DisplayMode windowMode;

if( SDL_GetWindowDisplayMode( SDL_window, &windowMode ) < 0 || numSDLModes <= 0 )
{
Expand Down

0 comments on commit da8a74d

Please sign in to comment.