mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 05:40:04 -04:00
Fix set_cursor_icon
This commit is contained in:
@@ -169,7 +169,8 @@ impl Window {
|
|||||||
CursorIcon::RowResize => "row-resize",
|
CursorIcon::RowResize => "row-resize",
|
||||||
};
|
};
|
||||||
*self.previous_pointer.borrow_mut() = text;
|
*self.previous_pointer.borrow_mut() = text;
|
||||||
self.canvas.set_attribute("cursor", text);
|
self.canvas
|
||||||
|
.set_attribute("style", &format!("cursor: {}", text));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|||||||
Reference in New Issue
Block a user