mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-22 12:48:28 +00:00
Mac: Fixed check for SDL_HINT_MAC_BACKGROUND_APP.
This commit is contained in:
parent
c509e798d7
commit
c57f409fe8
1 changed files with 1 additions and 1 deletions
|
@ -320,7 +320,7 @@ Cocoa_RegisterApp(void)
|
||||||
SDL_assert(NSApp != nil);
|
SDL_assert(NSApp != nil);
|
||||||
|
|
||||||
const char *hint = SDL_GetHint(SDL_HINT_MAC_BACKGROUND_APP);
|
const char *hint = SDL_GetHint(SDL_HINT_MAC_BACKGROUND_APP);
|
||||||
if (!hint || *hint != '0') {
|
if (!hint || *hint == '0') {
|
||||||
#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6
|
#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6
|
||||||
if ([NSApp respondsToSelector:@selector(setActivationPolicy:)]) {
|
if ([NSApp respondsToSelector:@selector(setActivationPolicy:)]) {
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue