Fix deprecation warning for compositing operation
This commit is contained in:
parent
cb15b98afd
commit
fa53ac7896
1 changed files with 0 additions and 4 deletions
|
|
@ -2519,11 +2519,7 @@ int _glfwPlatformCreateCursor(_GLFWcursor* cursor,
|
|||
}
|
||||
|
||||
if (frames > 1) {
|
||||
#ifdef MAC_OS_VERSION_12_0 /* same value as deprecated symbol. */
|
||||
const NSCompositingOperation operation = NSCompositingOperationCopy;
|
||||
#else
|
||||
const NSCompositingOperation operation = NSCompositeCopy;
|
||||
#endif
|
||||
const NSSize cropped_size = NSMakeSize(image.size.width, (int)(image.size.height / frames));
|
||||
NSImage *cropped = [[NSImage alloc] initWithSize:cropped_size];
|
||||
if (cropped == nil) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue