diff options
author | Zack Middleton <zturtleman@gmail.com> | 2015-06-28 16:29:10 -0500 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2016-04-07 11:02:28 +0100 |
commit | db361cbe859974162cf7c2d467b3209c692824f0 (patch) | |
tree | 1828dacc0ed7aac3ada43af5bca9f72bc4afffb0 /src/sdl | |
parent | cd73fc454e392d04156582984bccb4289307b2f3 (diff) |
Fix variable declaration for C89 compilers
Diffstat (limited to 'src/sdl')
-rw-r--r-- | src/sdl/sdl_glimp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) { |