Skip to content

Commit

Permalink
fixed incorrectly assumed return value (#116)
Browse files Browse the repository at this point in the history
Co-authored-by: CakesStuff <[email protected]>
  • Loading branch information
CakesStuff and nothankyou1 authored Feb 16, 2025
1 parent f8beace commit 9c9f955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdl3/video.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2015,9 +2015,9 @@ impl Window {

unsafe {
if sys::video::SDL_SetWindowMouseRect(self.context.raw, rect_raw_ptr) {
Err(get_error())
} else {
Ok(())
} else {
Err(get_error())
}
}
}
Expand Down

0 comments on commit 9c9f955

Please sign in to comment.