Merge pull request #4605 from sj6219/mac_cursof

macos cursor bugfix
This commit is contained in:
RustDesk 2023-06-10 11:53:27 +08:00 committed by GitHub
commit 140e88264a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -354,7 +354,7 @@ pub fn get_cursor_data(hcursor: u64) -> ResultType<CursorData> {
// 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;