Fix Size subtraction

This commit is contained in:
Joscha 2022-07-21 14:31:23 +02:00
parent 14aedaf252
commit 53b2728c82

View file

@ -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)
} }
} }