Merge pull request #1434 from antonilol/fix-1432

Fix copy-paste mistake in WindowBuilder::build
This commit is contained in:
John Giorshev
2025-03-02 18:29:03 -05:00
committed by GitHub

View File

@@ -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;