Commit 0aa2a6df2ca98ed3dd97a508efc8f2b8ca442657

Alfred Reynolds 2015-07-31T09:16:21

SDL - fix hint check, we want or not and

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/cocoa/SDL_cocoaevents.m b/src/video/cocoa/SDL_cocoaevents.m
index bf15e2a..3c9a040 100644
--- a/src/video/cocoa/SDL_cocoaevents.m
+++ b/src/video/cocoa/SDL_cocoaevents.m
@@ -320,7 +320,7 @@ Cocoa_RegisterApp(void)
         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