mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-05-02 02:06:30 +00:00
Fixed building with 10.9 SDK
Fixes https://github.com/libsdl-org/SDL/issues/5954
This commit is contained in:
parent
3ab1e303ec
commit
4d66501736
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue