Kaynağa Gözat

Mac: Fixed check for SDL_HINT_MAC_BACKGROUND_APP.

Philipp Wiesemann 9 yıl önce
ebeveyn
işleme
c57f409fe8
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/video/cocoa/SDL_cocoaevents.m

+ 1 - 1
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