Fix integration example

This commit is contained in:
thorn132 2024-12-04 18:40:42 -07:00 • committed by Héctor Ramón Jiménez
parent 3a6f29ce67
commit d33e18ec40
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -286,11 +286,17 @@ pub fn main() -> Result<(), winit::error::EventLoopError> {
.. ..
} = state } = state
{ {
window.set_cursor( // Update the mouse cursor
conversion::mouse_interaction( if let Some(icon) =
iced_winit::conversion::mouse_interaction(
mouse_interaction, mouse_interaction,
), )
); {
window.set_cursor(icon);
window.set_cursor_visible(true);
} else {
window.set_cursor_visible(false);
}
} }
// Draw the interface // Draw the interface