mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
Windows: cache custom cursors (#3293)
This commit is contained in:
@@ -407,10 +407,10 @@ impl Window {
|
||||
});
|
||||
}
|
||||
Cursor::Custom(cursor) => {
|
||||
let new_cursor = match WinCursor::new(&cursor.inner.0) {
|
||||
Ok(cursor) => cursor,
|
||||
Err(err) => {
|
||||
warn!("Failed to create custom cursor: {err}");
|
||||
let new_cursor = match cursor.inner {
|
||||
WinCursor::Cursor(cursor) => cursor,
|
||||
WinCursor::Failed => {
|
||||
warn!("Requested to apply failed cursor");
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user