Skip to content

Commit

Permalink
Fix copy-paste mistake in WindowBuilder::build
Browse files Browse the repository at this point in the history
  • Loading branch information
antonilol committed Sep 18, 2024
1 parent 400e033 commit 42a547b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdl2/video.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 42a547b

Please sign in to comment.