Skip to content

Commit

Permalink
needs to be a &self method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokathor committed Dec 6, 2023
1 parent 68ec0a2 commit 7c15e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl Sdl {
///
/// In other words, this is what you'd use for an "FPS" style interface.
#[inline]
pub fn set_relative_mouse_mode(b: bool) -> Result<(), ()> {
pub fn set_relative_mouse_mode(&self, b: bool) -> Result<(), ()> {
if unsafe { SDL_SetRelativeMouseMode(b.into()) } == 0 {
Ok(())
} else {
Expand Down

0 comments on commit 7c15e9d

Please sign in to comment.