mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Make Windows specific code Windows specific (#1747)
This commit is contained in:
@@ -499,6 +499,7 @@ impl State {
|
|||||||
|
|
||||||
fn set_cursor_icon(&mut self, window: &winit::window::Window, cursor_icon: egui::CursorIcon) {
|
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
|
// 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 {
|
if self.current_cursor_icon == cursor_icon {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user