Set cursor type only when necessary in tour
This commit is contained in:
parent
3838203dff
commit
e6f9b5a16e
@ -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(())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user