From 42a547b1a5fe62164ac5694a32104ebdab2e507e Mon Sep 17 00:00:00 2001 From: Antoni Spaanderman <56turtle56@gmail.com> Date: Wed, 18 Sep 2024 18:17:00 +0200 Subject: [PATCH] Fix copy-paste mistake in WindowBuilder::build closes #1432 --- src/sdl2/video.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl2/video.rs b/src/sdl2/video.rs index c758a61425..e344ea46a8 100644 --- a/src/sdl2/video.rs +++ b/src/sdl2/video.rs @@ -1145,7 +1145,7 @@ impl WindowBuilder { return Err(WidthOverflows(self.width)); } if self.height >= (1 << 31) { - return Err(HeightOverflows(self.width)); + return Err(HeightOverflows(self.height)); } let raw_width = self.width as c_int;