src/video/SDL_video.c
changeset 7954 712d8544f8a1
parent 7953 255ca6c77e58
child 7968 8c0afe77a1b2
--- a/src/video/SDL_video.c	Mon Nov 11 03:02:42 2013 -0800
+++ b/src/video/SDL_video.c	Mon Nov 11 03:12:50 2013 -0800
@@ -2138,6 +2138,7 @@
 ShouldMinimizeOnFocusLoss(SDL_Window * window)
 {
     SDL_bool default_minimize;
+    const char *hint;
 
     if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
         return SDL_FALSE;
@@ -2150,7 +2151,7 @@
         default_minimize = SDL_TRUE;
     }
 
-    const char *hint = SDL_GetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS);
+    hint = SDL_GetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS);
     if (hint) {
         if (*hint == '0') {
             return SDL_FALSE;