From 53b2728c827c9f93a743d5860c1b31cb1399875b Mon Sep 17 00:00:00 2001 From: Joscha Date: Thu, 21 Jul 2022 14:31:23 +0200 Subject: [PATCH] Fix Size subtraction --- src/buffer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer.rs b/src/buffer.rs index ef4fe4f..359fef7 100644 --- a/src/buffer.rs +++ b/src/buffer.rs @@ -39,7 +39,7 @@ impl Sub for Size { type Output = 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) } }