Make Windows specific code Windows specific (#1747)
This commit is contained in:
parent
9c26093fea
commit
5b3bff22e2
1 changed files with 1 additions and 0 deletions
|
@ -499,6 +499,7 @@ impl State {
|
|||
|
||||
fn set_cursor_icon(&mut self, window: &winit::window::Window, cursor_icon: egui::CursorIcon) {
|
||||
// prevent flickering near frame boundary when Windows OS tries to control cursor icon for window resizing
|
||||
#[cfg(windows)]
|
||||
if self.current_cursor_icon == cursor_icon {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue