From 6f5e7e170cd7bd9be1bb302dd91ebd906d29cfe1 Mon Sep 17 00:00:00 2001 From: Osspial Date: Sat, 5 Oct 2019 21:34:27 -0400 Subject: [PATCH] Update raw-window-handle to 0.3 (#1215) --- Cargo.toml | 2 +- src/platform_impl/windows/window.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 5720ae7b..8dc3e2e5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ lazy_static = "1" libc = "0.2" log = "0.4" serde = { version = "1", optional = true, features = ["serde_derive"] } -raw-window-handle = "0.2" +raw-window-handle = "0.3" [dev-dependencies] image = "0.21" diff --git a/src/platform_impl/windows/window.rs b/src/platform_impl/windows/window.rs index 4a00962b..629eae17 100644 --- a/src/platform_impl/windows/window.rs +++ b/src/platform_impl/windows/window.rs @@ -367,6 +367,7 @@ impl Window { pub fn raw_window_handle(&self) -> RawWindowHandle { let handle = WindowsHandle { hwnd: self.window.0 as *mut _, + hinstance: self.hinstance() as *mut _, ..WindowsHandle::empty() }; RawWindowHandle::Windows(handle)