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

@ -38,7 +38,6 @@ pub trait Backend: Sized {
surface: &Self::Surface,
width: u32,
height: u32,
scale_factor: f64,
) -> Self::SwapChain;
/// Draws the output primitives to the next frame of the given [`SwapChain`].
@ -50,6 +49,7 @@ pub trait Backend: Sized {
renderer: &mut Self::Renderer,
swap_chain: &mut Self::SwapChain,
output: &<Self::Renderer as crate::Renderer>::Output,
scale_factor: f64,
overlay: &[T],
) -> MouseCursor;
}