mirror of
https://github.com/touchHLE/rust-sdl2.git
synced 2026-01-31 01:25:23 +01:00
Merge pull request #1434 from antonilol/fix-1432
Fix copy-paste mistake in WindowBuilder::build
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user