[Commits] SDL: SDL

libsdl.org revision control commits-owner at libsdl.org
Fri Jul 31 09:17:00 PDT 2015


details:   https://hg.libsdl.org/SDL/rev/371d82c6bf94
changeset: 9822:371d82c6bf94
user:      Alfred Reynolds <alfred at valvesoftware.com>
date:      Fri Jul 31 09:16:21 2015 -0700
description:
SDL
- fix hint check, we want or not and

diffstat:

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

diffs (12 lines):

diff -r c1d91866a968 -r 371d82c6bf94 src/video/cocoa/SDL_cocoaevents.m
--- a/src/video/cocoa/SDL_cocoaevents.m	Thu Jul 30 10:01:04 2015 -0700
+++ b/src/video/cocoa/SDL_cocoaevents.m	Fri Jul 31 09:16:21 2015 -0700
@@ -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