|
|
@ -1540,7 +1540,7 @@ int _glfwPlatformCreateCursor(_GLFWcursor* cursor, |
|
|
|
memcpy([rep bitmapData], image->pixels, image->width * image->height * 4); |
|
|
|
memcpy([rep bitmapData], image->pixels, image->width * image->height * 4); |
|
|
|
|
|
|
|
|
|
|
|
native = [[NSImage alloc] initWithSize:NSMakeSize(image->width, image->height)]; |
|
|
|
native = [[NSImage alloc] initWithSize:NSMakeSize(image->width, image->height)]; |
|
|
|
[native addRepresentation: rep]; |
|
|
|
[native addRepresentation:rep]; |
|
|
|
|
|
|
|
|
|
|
|
cursor->ns.object = [[NSCursor alloc] initWithImage:native |
|
|
|
cursor->ns.object = [[NSCursor alloc] initWithImage:native |
|
|
|
hotSpot:NSMakePoint(xhot, yhot)]; |
|
|
|
hotSpot:NSMakePoint(xhot, yhot)]; |
|
|
|