diff options
author | 2023-01-18 17:04:11 -0800 | |
---|---|---|
committer | 2023-01-18 17:04:11 -0800 | |
commit | 0a643287deece9234b64cc843a9f6ae3e6e4806e (patch) | |
tree | f0072a46432d8e2f1a8a4131ac05297283d2dea5 /src | |
parent | 7e9a12a4aa64deda193dfc0f18c34f93e3adc852 (diff) | |
download | iced-0a643287deece9234b64cc843a9f6ae3e6e4806e.tar.gz iced-0a643287deece9234b64cc843a9f6ae3e6e4806e.tar.bz2 iced-0a643287deece9234b64cc843a9f6ae3e6e4806e.zip |
Added window::Id to multi_window application's scale_factor
Diffstat (limited to '')
-rw-r--r-- | src/multi_window/application.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/multi_window/application.rs b/src/multi_window/application.rs index 3f20382c..3af1d8d5 100644 --- a/src/multi_window/application.rs +++ b/src/multi_window/application.rs @@ -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 { |