mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-23 02:16:33 +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"
|
||||
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"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue