mirror of https://github.com/encounter/SDL.git
This commit is contained in:
parent
10e1ef00e2
commit
5ffede35d9
|
@ -160,7 +160,7 @@ static VideoBootStrap *bootstrap[] = {
|
||||||
|
|
||||||
#define FULLSCREEN_MASK (SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_FULLSCREEN)
|
#define FULLSCREEN_MASK (SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_FULLSCREEN)
|
||||||
|
|
||||||
#ifdef __MACOSX__
|
#if defined(__MACOSX__) && defined(SDL_VIDEO_DRIVER_COCOA)
|
||||||
/* Support for Mac OS X fullscreen spaces */
|
/* Support for Mac OS X fullscreen spaces */
|
||||||
extern SDL_bool Cocoa_IsWindowInFullscreenSpace(SDL_Window * window);
|
extern SDL_bool Cocoa_IsWindowInFullscreenSpace(SDL_Window * window);
|
||||||
extern SDL_bool Cocoa_SetWindowFullscreenSpace(SDL_Window * window, SDL_bool state);
|
extern SDL_bool Cocoa_SetWindowFullscreenSpace(SDL_Window * window, SDL_bool state);
|
||||||
|
@ -1335,7 +1335,7 @@ SDL_UpdateFullscreenMode(SDL_Window * window, SDL_bool fullscreen)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __MACOSX__
|
#if defined(__MACOSX__) && defined(SDL_VIDEO_DRIVER_COCOA)
|
||||||
/* if the window is going away and no resolution change is necessary,
|
/* if the window is going away and no resolution change is necessary,
|
||||||
do nothing, or else we may trigger an ugly double-transition
|
do nothing, or else we may trigger an ugly double-transition
|
||||||
*/
|
*/
|
||||||
|
@ -3170,7 +3170,7 @@ ShouldMinimizeOnFocusLoss(SDL_Window * window)
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __MACOSX__
|
#if defined(__MACOSX__) && defined(SDL_VIDEO_DRIVER_COCOA)
|
||||||
if (SDL_strcmp(_this->name, "cocoa") == 0) { /* don't do this for X11, etc */
|
if (SDL_strcmp(_this->name, "cocoa") == 0) { /* don't do this for X11, etc */
|
||||||
if (Cocoa_IsWindowInFullscreenSpace(window)) {
|
if (Cocoa_IsWindowInFullscreenSpace(window)) {
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
|
|
Loading…
Reference in New Issue