mirror of https://github.com/encounter/SDL.git
Fixed compiling with ISO C90
This commit is contained in:
parent
2ceeb74e25
commit
2384ad5b9e
|
@ -2138,6 +2138,7 @@ static SDL_bool
|
||||||
ShouldMinimizeOnFocusLoss(SDL_Window * window)
|
ShouldMinimizeOnFocusLoss(SDL_Window * window)
|
||||||
{
|
{
|
||||||
SDL_bool default_minimize;
|
SDL_bool default_minimize;
|
||||||
|
const char *hint;
|
||||||
|
|
||||||
if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
|
if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
|
@ -2150,7 +2151,7 @@ ShouldMinimizeOnFocusLoss(SDL_Window * window)
|
||||||
default_minimize = SDL_TRUE;
|
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) {
|
||||||
if (*hint == '0') {
|
if (*hint == '0') {
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
|
|
Loading…
Reference in New Issue