mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-02-02 23:06:32 +11:00
Update raw-window-handle to 0.3 (#1215)
This commit is contained in:
parent
df7571b369
commit
6f5e7e170c
2 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,7 @@ lazy_static = "1"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
serde = { version = "1", optional = true, features = ["serde_derive"] }
|
serde = { version = "1", optional = true, features = ["serde_derive"] }
|
||||||
raw-window-handle = "0.2"
|
raw-window-handle = "0.3"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
image = "0.21"
|
image = "0.21"
|
||||||
|
|
|
@ -367,6 +367,7 @@ impl Window {
|
||||||
pub fn raw_window_handle(&self) -> RawWindowHandle {
|
pub fn raw_window_handle(&self) -> RawWindowHandle {
|
||||||
let handle = WindowsHandle {
|
let handle = WindowsHandle {
|
||||||
hwnd: self.window.0 as *mut _,
|
hwnd: self.window.0 as *mut _,
|
||||||
|
hinstance: self.hinstance() as *mut _,
|
||||||
..WindowsHandle::empty()
|
..WindowsHandle::empty()
|
||||||
};
|
};
|
||||||
RawWindowHandle::Windows(handle)
|
RawWindowHandle::Windows(handle)
|
||||||
|
|
Loading…
Add table
Reference in a new issue