Browse Source

Fixed building with 10.9 SDK

Fixes https://github.com/libsdl-org/SDL/issues/5954
Sam Lantinga 2 years ago
parent
commit
4d66501736
1 changed files with 1 additions and 1 deletions
  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];
     }