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

@ -148,7 +148,7 @@ pub trait Application: Sized {
/// while a scale factor of `0.5` will shrink them to half their size.
///
/// By default, it returns `1.0`.
fn scale_factor(&self) -> f64 {
fn scale_factor(&self, window: window::Id) -> f64 {
1.0
}
@ -239,8 +239,8 @@ where
self.0.subscription()
}
fn scale_factor(&self) -> f64 {
self.0.scale_factor()
fn scale_factor(&self, window: window::Id) -> f64 {
self.0.scale_factor(window)
}
fn should_exit(&self) -> bool {