瀏覽代碼

SDL
- fix hint check, we want or not and

Alfred Reynolds 10 年之前
父節點
當前提交
0aa2a6df2c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
         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