mirror of
https://github.com/italicsjenga/muda.git
synced 2024-12-24 04:11:30 +11:00
fix(deps): update rust crate windows-sys to 0.48 (#62)
* fix(deps): update rust crate windows-sys to 0.48 * fix compilation --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
This commit is contained in:
parent
c85f499cd7
commit
dfd7b9e437
|
@ -17,7 +17,7 @@ once_cell = "1"
|
||||||
thiserror = "1"
|
thiserror = "1"
|
||||||
|
|
||||||
[target."cfg(target_os = \"windows\")".dependencies.windows-sys]
|
[target."cfg(target_os = \"windows\")".dependencies.windows-sys]
|
||||||
version = "0.45"
|
version = "0.48"
|
||||||
features = [
|
features = [
|
||||||
"Win32_UI_WindowsAndMessaging",
|
"Win32_UI_WindowsAndMessaging",
|
||||||
"Win32_Foundation",
|
"Win32_Foundation",
|
||||||
|
|
|
@ -91,7 +91,7 @@ impl WinIcon {
|
||||||
bitmap_info.bmiHeader.biHeight = rc.bottom;
|
bitmap_info.bmiHeader.biHeight = rc.bottom;
|
||||||
bitmap_info.bmiHeader.biPlanes = 1;
|
bitmap_info.bmiHeader.biPlanes = 1;
|
||||||
bitmap_info.bmiHeader.biBitCount = 32;
|
bitmap_info.bmiHeader.biBitCount = 32;
|
||||||
bitmap_info.bmiHeader.biCompression = BI_RGB;
|
bitmap_info.bmiHeader.biCompression = BI_RGB as _;
|
||||||
|
|
||||||
let h_dc_bitmap = GetDC(0);
|
let h_dc_bitmap = GetDC(0);
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ impl DerefMut for Accel {
|
||||||
|
|
||||||
// taken from winit's code base
|
// taken from winit's code base
|
||||||
// https://github.com/rust-windowing/winit/blob/ee88e38f13fbc86a7aafae1d17ad3cd4a1e761df/src/platform_impl/windows/util.rs#L138
|
// https://github.com/rust-windowing/winit/blob/ee88e38f13fbc86a7aafae1d17ad3cd4a1e761df/src/platform_impl/windows/util.rs#L138
|
||||||
pub fn get_instance_handle() -> windows_sys::Win32::Foundation::HINSTANCE {
|
pub fn get_instance_handle() -> windows_sys::Win32::Foundation::HMODULE {
|
||||||
// Gets the instance handle by taking the address of the
|
// Gets the instance handle by taking the address of the
|
||||||
// pseudo-variable created by the microsoft linker:
|
// pseudo-variable created by the microsoft linker:
|
||||||
// https://devblogs.microsoft.com/oldnewthing/20041025-00/?p=37483
|
// https://devblogs.microsoft.com/oldnewthing/20041025-00/?p=37483
|
||||||
|
|
Loading…
Reference in a new issue