mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 11:21:30 +11:00
ARM and AARCH64 Windows Support (#300)
* ARM and AARCH64 Windows Support
This commit is contained in:
parent
193726cd6d
commit
ad331de5c2
|
@ -170,6 +170,25 @@ unsafe fn set_window_long(window: windef::HWND, data: ntdef::LONG) -> ntdef::LON
|
|||
unsafe fn get_window_long(window: windef::HWND) -> ntdef::LONG {
|
||||
winuser::GetWindowLongW(window, winuser::GWLP_USERDATA)
|
||||
}
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
unsafe fn set_window_long(window: windef::HWND, data: basetsd::LONG_PTR) -> basetsd::LONG_PTR {
|
||||
winuser::SetWindowLongPtrW(window, winuser::GWLP_USERDATA, data)
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
unsafe fn get_window_long(window: windef::HWND) -> basetsd::LONG_PTR {
|
||||
winuser::GetWindowLongPtrW(window, winuser::GWLP_USERDATA)
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "arm")]
|
||||
unsafe fn set_window_long(window: windef::HWND, data: basetsd::LONG_PTR) -> basetsd::LONG_PTR {
|
||||
winuser::SetWindowLongPtrW(window, winuser::GWLP_USERDATA, data)
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "arm")]
|
||||
unsafe fn get_window_long(window: windef::HWND) -> basetsd::LONG_PTR {
|
||||
winuser::GetWindowLongPtrW(window, winuser::GWLP_USERDATA)
|
||||
}
|
||||
|
||||
unsafe extern "system" fn wnd_proc(
|
||||
window: windef::HWND,
|
||||
|
|
Loading…
Reference in a new issue