Skip to content

Commit

Permalink
wmouse_trafo should take a WINDOW not a *mut WINDOW
Browse files Browse the repository at this point in the history
  • Loading branch information
czipperz committed Dec 23, 2018
1 parent 29661df commit 572d1f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1994,7 +1994,7 @@ pub fn mousemask(newmask: mmask_t, oldmask: Option<&mut mmask_t>) -> mmask_t
pub fn wenclose(w: WINDOW, y: i32, x: i32) -> bool
{ unsafe { ll::wenclose(w, y as libc::c_int, x as libc::c_int) == TRUE } }

pub fn wmouse_trafo(w: *mut WINDOW, y: &mut[i32], x: &mut[i32], to_screen: bool) -> bool
pub fn wmouse_trafo(w: WINDOW, y: &mut[i32], x: &mut[i32], to_screen: bool) -> bool
{ unsafe { ll::wmouse_trafo(w, y.as_mut_ptr(), x.as_mut_ptr(), to_screen as ll::c_bool) == TRUE } }

pub fn mouse_trafo(y: &mut[i32], x: &mut[i32], to_screen: bool) -> bool
Expand Down
2 changes: 1 addition & 1 deletion src/ll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ extern {
pub fn mousemask(_:mmask_t,_:*mut mmask_t) -> mmask_t;
pub fn wenclose(_:WINDOW,_:c_int,_:c_int) -> c_bool;
pub fn mouseinterval(_:c_int) -> c_int;
pub fn wmouse_trafo(_:*mut WINDOW,_:*mut c_int,_:*mut c_int,_:c_bool) -> c_bool;
pub fn wmouse_trafo(_:WINDOW,_:*mut c_int,_:*mut c_int,_:c_bool) -> c_bool;
pub fn mouse_trafo(_:*mut c_int,_:*mut c_int,_:c_bool) -> c_bool;
}

Expand Down

0 comments on commit 572d1f6

Please sign in to comment.