Fix deprecation warning for compositing operation

This commit is contained in:
Kovid Goyal 2023-10-18 06:12:31 +05:30
parent cb15b98afd
commit fa53ac7896
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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) {