diff --git a/run.bat b/run.bat new file mode 100644 index 0000000..6521070 --- /dev/null +++ b/run.bat @@ -0,0 +1 @@ +cargo run --release \ No newline at end of file diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..0f4c3cf --- /dev/null +++ b/run.sh @@ -0,0 +1 @@ +cargo run \ No newline at end of file diff --git a/src/platform.rs b/src/platform.rs index 6d1249b..8ee2780 100644 --- a/src/platform.rs +++ b/src/platform.rs @@ -35,7 +35,7 @@ pub fn get_platform_data(window: &Window) -> PlatformData { pd.nwh = data.ns_window; } #[cfg(target_os = "windows")] - RawWindowHandle::Windows(data) => { + RawWindowHandle::Win32(data) => { pd.nwh = data.hwnd; } _ => panic!("Unsupported Window Manager"),