Set cursor type only when necessary in tour
This commit is contained in:
parent
3838203dff
commit
e6f9b5a16e
1 changed files with 5 additions and 1 deletions
|
|
@ -170,7 +170,11 @@ impl event::EventHandler for Game {
|
||||||
self.tour.update(message);
|
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)?;
|
graphics::present(context)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue