Explorar o código

Fixed building with 10.9 SDK

Fixes https://github.com/libsdl-org/SDL/issues/5954
Sam Lantinga %!s(int64=3) %!d(string=hai) anos
pai
achega
4d66501736
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video/cocoa/SDL_cocoamouse.m

+ 1 - 1
src/video/cocoa/SDL_cocoamouse.m

@@ -117,7 +117,7 @@ LoadHiddenSystemCursor(NSString *cursorName, SEL fallback)
     const int frames = (int)[[info valueForKey:@"frames"] integerValue];
     NSCursor *cursor;
     NSImage *image = [[NSImage alloc] initWithContentsOfFile:[cursorPath stringByAppendingPathComponent:@"cursor.pdf"]];
-    if ((image == nil) || (image.valid == NO)) {
+    if ((image == nil) || (image.isValid == NO)) {
         return [NSCursor performSelector:fallback];
     }