Fix Size subtraction
This commit is contained in:
parent
14aedaf252
commit
53b2728c82
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ impl Sub for Size {
|
||||||
type Output = Self;
|
type Output = Self;
|
||||||
|
|
||||||
fn sub(self, rhs: Self) -> Self {
|
fn sub(self, rhs: Self) -> Self {
|
||||||
Self::new(self.width + rhs.width, self.height + rhs.height)
|
Self::new(self.width - rhs.width, self.height - rhs.height)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue