Added window::Id to multi_window application's scale_factor

This commit is contained in:
Bingus 2023-01-18 17:04:11 -08:00
parent 7e9a12a4aa
commit 0a643287de
No known key found for this signature in database
GPG key ID: 5F84D2AA40A9F170
4 changed files with 14 additions and 6 deletions

View file

@ -36,7 +36,7 @@ where
window: &Window,
) -> Self {
let title = application.title(window_id);
let scale_factor = application.scale_factor();
let scale_factor = application.scale_factor(window_id);
let theme = application.theme();
let appearance = theme.appearance(&application.style());
@ -199,7 +199,7 @@ where
}
// Update scale factor
let new_scale_factor = application.scale_factor();
let new_scale_factor = application.scale_factor(window_id);
if self.scale_factor != new_scale_factor {
let size = window.inner_size();