From 35f45e4a5e49720a0f6038dce5abe088e41f7c59 Mon Sep 17 00:00:00 2001 From: sjpark Date: Sat, 10 Jun 2023 06:52:42 +0900 Subject: [PATCH] macos cursor bugfix --- src/platform/macos.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/macos.rs b/src/platform/macos.rs index 01779f5ca..3f480f839 100644 --- a/src/platform/macos.rs +++ b/src/platform/macos.rs @@ -354,7 +354,7 @@ pub fn get_cursor_data(hcursor: u64) -> ResultType { // let cs: id = msg_send![class!(NSColorSpace), sRGBColorSpace]; for y in 0..(size.height as _) { for x in 0..(size.width as _) { - let color: id = msg_send![rep, colorAtX:x y:y]; + let color: id = msg_send![rep, colorAtX:x as cocoa::foundation::NSInteger y:y as cocoa::foundation::NSInteger]; // let color: id = msg_send![color, colorUsingColorSpace: cs]; if color == nil { continue;