Added window::Id to multi_window application's scale_factor
This commit is contained in:
parent
7e9a12a4aa
commit
0a643287de
4 changed files with 14 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue