-
Notifications
You must be signed in to change notification settings - Fork 920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port to windows-sys v0.48.0 #2842
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could likely alias, but probably changing HINSTANCE
to HMODULE
should do it.
src/platform_impl/windows/util.rs
Outdated
@@ -149,6 +149,9 @@ pub fn is_minimized(window: HWND) -> bool { | |||
unsafe { IsIconic(window) != false.into() } | |||
} | |||
|
|||
#[allow(clippy::upper_case_acronyms)] | |||
pub type HINSTANCE = isize; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was said that HMODULE
is the same as HINSTANCE
nowadays, the difference was only on 16bit windows, so we likely should use HMODULE
.
https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types
@@ -60,6 +60,7 @@ And please only add new entries to the top of this list, right below the `# Unre | |||
- On Web, fix pointer button events not being processed when a buttons is already pressed. | |||
- **Breaking:** Updated `bitflags` crate version to `2`, which changes the API on exposed types. | |||
- On Web, handle coalesced pointer events, which increases the resolution of pointer inputs. | |||
- On Windows, port to `windows-sys` version 0.48.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's meaningful to users. Though the changelog entries have conflicts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disagree; windows-sys
version churn has been a frequent enough problem that's been resolved as of version 0.48.0 (at least for the time being). Knowledge that we are using this new version may be valuable to users trying to avoid windows-sys
version churn.
CHANGELOG.md
if knowledge of this change could be valuable to usersShould fix the
cargo deny
errors we've been getting on #2812