mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Fixed compilation warning when building with OS X 10.11 SDK
The warning was 'null passed to a callee that requires a non-null argument'
This commit is contained in:
parent
2c3d9e3ab8
commit
673e1b4faf
1 changed files with 1 additions and 1 deletions
|
@ -1219,7 +1219,7 @@ bool I_SetCursor(FTexture* cursorpic)
|
||||||
// Create image from representation and set it as cursor
|
// Create image from representation and set it as cursor
|
||||||
|
|
||||||
NSData* imageData = [bitmapImageRep representationUsingType:NSPNGFileType
|
NSData* imageData = [bitmapImageRep representationUsingType:NSPNGFileType
|
||||||
properties:nil];
|
properties:[NSDictionary dictionary]];
|
||||||
NSImage* cursorImage = [[NSImage alloc] initWithData:imageData];
|
NSImage* cursorImage = [[NSImage alloc] initWithData:imageData];
|
||||||
|
|
||||||
cursor = [[NSCursor alloc] initWithImage:cursorImage
|
cursor = [[NSCursor alloc] initWithImage:cursorImage
|
||||||
|
|
Loading…
Reference in a new issue