Use f32 for scale_factor
This commit is contained in:
parent
ad0e4c53cf
commit
74b792b608
14 changed files with 56 additions and 51 deletions
|
|
@ -98,7 +98,7 @@ where
|
|||
state.style(&self.program, theme)
|
||||
}
|
||||
|
||||
fn scale_factor(&self, state: &Self::State, window: window::Id) -> f64 {
|
||||
fn scale_factor(&self, state: &Self::State, window: window::Id) -> f32 {
|
||||
state.scale_factor(&self.program, window)
|
||||
}
|
||||
}
|
||||
|
|
@ -397,7 +397,7 @@ where
|
|||
program.style(self.state(), theme)
|
||||
}
|
||||
|
||||
fn scale_factor(&self, program: &P, window: window::Id) -> f64 {
|
||||
fn scale_factor(&self, program: &P, window: window::Id) -> f32 {
|
||||
program.scale_factor(self.state(), window)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue