summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2015-06-28 16:29:10 -0500
committerTim Angus <tim@ngus.net>2016-04-07 11:02:28 +0100
commitdb361cbe859974162cf7c2d467b3209c692824f0 (patch)
tree1828dacc0ed7aac3ada43af5bca9f72bc4afffb0
parentcd73fc454e392d04156582984bccb4289307b2f3 (diff)
Fix variable declaration for C89 compilers
-rw-r--r--src/sdl/sdl_glimp.c2
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 )
{