Remove scale_factor from iced_wgpu::Viewport

This commit is contained in:
Héctor Ramón Jiménez 2020-02-09 03:36:59 +01:00
parent 8edb04fddd
commit 8f0b59a4b2
6 changed files with 12 additions and 15 deletions

View file

@ -17,11 +17,10 @@ impl SwapChain {
surface: &wgpu::Surface,
width: u32,
height: u32,
scale_factor: f64,
) -> SwapChain {
SwapChain {
raw: new_swap_chain(surface, width, height, device),
viewport: Viewport::new(width, height, scale_factor),
viewport: Viewport::new(width, height),
}
}