Update raw-window-handle to 0.3 (#1215)

This commit is contained in:
Osspial 2019-10-05 21:34:27 -04:00 committed by GitHub
parent df7571b369
commit 6f5e7e170c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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"

View file

@ -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)