Windows: impl WindowsDisplay (#9287)

Tested on my laptop, and I've noticed that when I move the window,
`WindowsPlatform::displays()` is being continuously called. Is this
intended?

Release Notes:

- N/A
This commit is contained in:
张小白 2024-03-14 04:08:11 +08:00 committed by GitHub
parent 36cbfbfb94
commit 3274cc93df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 173 additions and 37 deletions

7
Cargo.lock generated
View file

@ -8729,6 +8729,12 @@ dependencies = [
"digest 0.10.7",
]
[[package]]
name = "sha1_smol"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae1a47186c03a32177042e55dbc5fd5aee900b8e0069a8d70fba96a9375cd012"
[[package]]
name = "sha2"
version = "0.9.9"
@ -11034,6 +11040,7 @@ checksum = "79daa5ed5740825c40b389c5e50312b9c86df53fccd33f281df655642b43869d"
dependencies = [
"getrandom 0.2.10",
"serde",
"sha1_smol",
]
[[package]]