Skip to content

Commit

Permalink
Fixed compiling with ISO C90
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 11, 2013
1 parent 2ceeb74 commit 2384ad5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/SDL_video.c
Expand Up @@ -2138,6 +2138,7 @@ static SDL_bool
ShouldMinimizeOnFocusLoss(SDL_Window * window)
{
SDL_bool default_minimize;
const char *hint;

if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
return SDL_FALSE;
Expand All @@ -2150,7 +2151,7 @@ ShouldMinimizeOnFocusLoss(SDL_Window * window)
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;
Expand Down

0 comments on commit 2384ad5

Please sign in to comment.