From db361cbe859974162cf7c2d467b3209c692824f0 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 28 Jun 2015 16:29:10 -0500 Subject: Fix variable declaration for C89 compilers --- src/sdl/sdl_glimp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sdl') diff --git a/src/sdl/sdl_glimp.c b/src/sdl/sdl_glimp.c index 2141c2bb..b41da64c 100644 --- a/src/sdl/sdl_glimp.c +++ b/src/sdl/sdl_glimp.c @@ -139,9 +139,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 ) { -- cgit