mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-24 03:41:29 +11:00
imports
This commit is contained in:
parent
467ad2666f
commit
d5095f9c3f
|
@ -1283,7 +1283,7 @@ unsafe impl raw_window_handle::HasRawDisplayHandle for Window {
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.c_ptr() as *mut _ as *mut c_void;
|
.c_ptr() as *mut _ as *mut c_void;
|
||||||
|
|
||||||
RawDisplayHandle::Wayland(handle)
|
raw_window_handle::RawDisplayHandle::Wayland(handle)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -338,12 +338,12 @@ unsafe impl raw_window_handle::HasRawWindowHandle for Window {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl HasRawDisplayHandle for Window {
|
unsafe impl raw_window_handle::HasRawDisplayHandle for Window {
|
||||||
fn raw_display_handle(&self) -> raw_window_handle::RawDisplayHandle {
|
fn raw_display_handle(&self) -> raw_window_handle::RawDisplayHandle {
|
||||||
let mut handle = raw_window_handle::XlibDisplayHandle::empty();
|
let mut handle = raw_window_handle::XlibDisplayHandle::empty();
|
||||||
handle.display = self.d.display as *mut core::ffi::c_void;
|
handle.display = self.d.display as *mut core::ffi::c_void;
|
||||||
|
|
||||||
RawDisplayHandle::Xlib(handle)
|
raw_window_handle::RawDisplayHandle::Xlib(handle)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue