MacOS: cache custom cursors (#3291)
This commit is contained in:
parent
e5310ade08
commit
a8f49dc8ef
3 changed files with 20 additions and 2 deletions
|
|
@ -849,7 +849,7 @@ impl WinitWindow {
|
|||
#[inline]
|
||||
pub(crate) fn set_custom_cursor(&self, cursor: PlatformCustomCursor) {
|
||||
let view = self.view();
|
||||
view.set_cursor_icon(NSCursor::from_image(&cursor.0));
|
||||
view.set_cursor_icon(cursor.0.clone());
|
||||
self.invalidateCursorRectsForView(&view);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue