[Commits] SDL: Mac: Fixed check for SDL_HINT_MAC_BACKGROUND_APP.

libsdl.org revision control commits-owner at libsdl.org
Fri Jul 31 11:21:07 PDT 2015


details:   https://hg.libsdl.org/SDL/rev/0b5b4bf90f02
changeset: 9826:0b5b4bf90f02
user:      Philipp Wiesemann <philipp.wiesemann at arcor.de>
date:      Fri Jul 31 20:16:58 2015 +0200
description:
Mac: Fixed check for SDL_HINT_MAC_BACKGROUND_APP.

diffstat:

 src/video/cocoa/SDL_cocoaevents.m |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r dfdb0933d57c -r 0b5b4bf90f02 src/video/cocoa/SDL_cocoaevents.m
--- a/src/video/cocoa/SDL_cocoaevents.m	Fri Jul 31 20:16:18 2015 +0200
+++ b/src/video/cocoa/SDL_cocoaevents.m	Fri Jul 31 20:16:58 2015 +0200
@@ -320,7 +320,7 @@
         SDL_assert(NSApp != nil);
 
         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 ([NSApp respondsToSelector:@selector(setActivationPolicy:)]) {
 #endif


More information about the commits mailing list