From 715e698396b00f5445c4bdb2ab0b64de72a5f869 Mon Sep 17 00:00:00 2001 From: MrEggo Date: Sat, 26 Mar 2022 12:26:13 +1100 Subject: [PATCH] Screw windows --- run.bat | 1 + run.sh | 1 + src/platform.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 run.bat create mode 100644 run.sh 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"),