Skip to content

Commit 825047e

Browse files
authored
Merge pull request #1434 from antonilol/fix-1432
Fix copy-paste mistake in WindowBuilder::build
2 parents 3486770 + 42a547b commit 825047e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sdl2/video.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ impl WindowBuilder {
11451145
return Err(WidthOverflows(self.width));
11461146
}
11471147
if self.height >= (1 << 31) {
1148-
return Err(HeightOverflows(self.width));
1148+
return Err(HeightOverflows(self.height));
11491149
}
11501150

11511151
let raw_width = self.width as c_int;

0 commit comments

Comments
 (0)