Skip to content

Commit e0fe8f1

Browse files
committed
fix macos compile issues (me dum)
1 parent 1f46cda commit e0fe8f1

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/macos/cursor.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ impl From<MouseCursor> for Cursor {
1313
fn from(cursor: MouseCursor) -> Self {
1414
match cursor {
1515
MouseCursor::Default => Cursor::Native("arrowCursor"),
16-
MouseCursor::Pointer => Cursor::Native("pointingHandCursor"),
1716
MouseCursor::Hand => Cursor::Native("openHandCursor"),
1817
MouseCursor::HandGrabbing => Cursor::Native("closedHandCursor"),
1918
MouseCursor::Text => Cursor::Native("IBeamCursor"),

src/macos/window.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,9 @@ impl<'a> Window<'a> {
339339
pub fn set_mouse_cursor(&mut self, cursor: MouseCursor) {
340340
let native_cursor = Cursor::from(cursor);
341341
unsafe {
342-
let bounds: NSRect = msg_send![self.ns_view as id, bounds];
342+
let bounds: NSRect = msg_send![self.inner.ns_view as id, bounds];
343343
let cursor = native_cursor.load();
344-
let _: () = msg_send![self.ns_view as id,
344+
let _: () = msg_send![self.inner.ns_view as id,
345345
addCursorRect:bounds
346346
cursor:cursor
347347
];

0 commit comments

Comments
 (0)