Closed xobs closed 3 years ago
The SelectObject() call accepts a HGDIOBJ which is typecast to a std::os::raw::c_void when building using libstd, and is its own thing when building with std disabled:
SelectObject()
HGDIOBJ
std::os::raw::c_void
winapi/0.3.9/src/winapi/lib.rs.html:
#[cfg(feature = "std")] pub use std::os::raw::c_void; #[cfg(not(feature = "std"))] pub enum c_void {}
This patch uses the winapi c_void as the typecast as necessary.
Thanks!
The
SelectObject()
call accepts aHGDIOBJ
which is typecast to astd::os::raw::c_void
when building using libstd, and is its own thing when building with std disabled:winapi/0.3.9/src/winapi/lib.rs.html:
This patch uses the winapi c_void as the typecast as necessary.