|
|
@ -1189,6 +1189,9 @@ int _glfwPlatformCreateCursor(_GLFWcursor* cursor, |
|
|
|
NSImage* native; |
|
|
|
NSImage* native; |
|
|
|
NSBitmapImageRep* rep; |
|
|
|
NSBitmapImageRep* rep; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!initializeAppKit()) |
|
|
|
|
|
|
|
return GL_FALSE; |
|
|
|
|
|
|
|
|
|
|
|
rep = [[NSBitmapImageRep alloc] |
|
|
|
rep = [[NSBitmapImageRep alloc] |
|
|
|
initWithBitmapDataPlanes:NULL |
|
|
|
initWithBitmapDataPlanes:NULL |
|
|
|
pixelsWide:image->width |
|
|
|
pixelsWide:image->width |
|
|
@ -1224,6 +1227,9 @@ int _glfwPlatformCreateCursor(_GLFWcursor* cursor, |
|
|
|
|
|
|
|
|
|
|
|
int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) |
|
|
|
int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (!initializeAppKit()) |
|
|
|
|
|
|
|
return GL_FALSE; |
|
|
|
|
|
|
|
|
|
|
|
cursor->ns.object = getStandardCursor(shape); |
|
|
|
cursor->ns.object = getStandardCursor(shape); |
|
|
|
if (!cursor->ns.object) |
|
|
|
if (!cursor->ns.object) |
|
|
|
{ |
|
|
|
{ |
|
|
|