src/video/SDL_video.c
changeset 7954 712d8544f8a1
parent 7953 255ca6c77e58
child 7968 8c0afe77a1b2
     1.1 --- a/src/video/SDL_video.c	Mon Nov 11 03:02:42 2013 -0800
     1.2 +++ b/src/video/SDL_video.c	Mon Nov 11 03:12:50 2013 -0800
     1.3 @@ -2138,6 +2138,7 @@
     1.4  ShouldMinimizeOnFocusLoss(SDL_Window * window)
     1.5  {
     1.6      SDL_bool default_minimize;
     1.7 +    const char *hint;
     1.8  
     1.9      if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
    1.10          return SDL_FALSE;
    1.11 @@ -2150,7 +2151,7 @@
    1.12          default_minimize = SDL_TRUE;
    1.13      }
    1.14  
    1.15 -    const char *hint = SDL_GetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS);
    1.16 +    hint = SDL_GetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS);
    1.17      if (hint) {
    1.18          if (*hint == '0') {
    1.19              return SDL_FALSE;