diff options
-rw-r--r-- | examples/tour/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/tour/main.rs b/examples/tour/main.rs index 1a9ba362..571bc2e2 100644 --- a/examples/tour/main.rs +++ b/examples/tour/main.rs @@ -170,7 +170,11 @@ impl event::EventHandler for Game { self.tour.update(message); } - mouse::set_cursor_type(context, into_cursor_type(cursor)); + let cursor_type = into_cursor_type(cursor); + + if mouse::cursor_type(context) != cursor_type { + mouse::set_cursor_type(context, cursor_type); + } graphics::present(context)?; Ok(()) |