Skip to content

Commit dbf710f

Browse files
committed
Fix copy-paste mistake in WindowBuilder::build
see Rust-SDL2/rust-sdl2#1434
1 parent 59cb4ed commit dbf710f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sdl3/video.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ impl WindowBuilder {
12371237
return Err(WidthOverflows(self.width));
12381238
}
12391239
if self.height >= (1 << 31) {
1240-
return Err(HeightOverflows(self.width));
1240+
return Err(HeightOverflows(self.height));
12411241
}
12421242

12431243
let raw_width = self.width as c_int;

0 commit comments

Comments
 (0)