Make Windows specific code Windows specific (#1747)

This commit is contained in:
Barugon
2022-06-19 07:12:58 -07:00
committed by GitHub
parent 9c26093fea
commit 5b3bff22e2
+1
View File
@@ -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;
}