Fix variable declaration for C89 compilers

This commit is contained in:
Zack Middleton 2015-06-28 16:29:10 -05:00
parent 61825d8e5f
commit da8a74d734

View file

@ -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 )
{