Removed Into for Rectangle<f32> from u32
This commit is contained in:
parent
781ef1f94c
commit
36e8521593
2 changed files with 1 additions and 12 deletions
|
|
@ -183,17 +183,6 @@ impl From<Rectangle<u32>> for Rectangle<f32> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<Rectangle<f32>> for Rectangle<u32> {
|
|
||||||
fn from(rectangle: Rectangle<f32>) -> Self {
|
|
||||||
Rectangle {
|
|
||||||
x: rectangle.x as u32,
|
|
||||||
y: rectangle.y as u32,
|
|
||||||
width: rectangle.width as u32,
|
|
||||||
height: rectangle.height as u32,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<T> std::ops::Add<Vector<T>> for Rectangle<T>
|
impl<T> std::ops::Add<Vector<T>> for Rectangle<T>
|
||||||
where
|
where
|
||||||
T: std::ops::Add<Output = T>,
|
T: std::ops::Add<Output = T>,
|
||||||
|
|
|
||||||
|
|
@ -335,7 +335,7 @@ impl Backend {
|
||||||
|
|
||||||
shader.primitive.render(
|
shader.primitive.render(
|
||||||
&self.pipeline_storage,
|
&self.pipeline_storage,
|
||||||
bounds.into(),
|
bounds.snap(),
|
||||||
target,
|
target,
|
||||||
target_size,
|
target_size,
|
||||||
encoder,
|
encoder,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue