Skip to content

Commit

Permalink
Make Windows specific code Windows specific (emilk#1747)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barugon authored and Titaniumtown committed Jun 20, 2022
1 parent f8b0092 commit 4b57c61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions egui-winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4b57c61

Please sign in to comment.