Преглед на файлове

Fixed building with 10.9 SDK

Fixes https://github.com/libsdl-org/SDL/issues/5954
Sam Lantinga преди 3 години
родител
ревизия
4d66501736
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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];
     const int frames = (int)[[info valueForKey:@"frames"] integerValue];
     NSCursor *cursor;
     NSCursor *cursor;
     NSImage *image = [[NSImage alloc] initWithContentsOfFile:[cursorPath stringByAppendingPathComponent:@"cursor.pdf"]];
     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];
         return [NSCursor performSelector:fallback];
     }
     }