jeaye/ncurses-rs

`wmouse_trafo` should take a `*const WINDOW`

czipperz opened this issue · 2 comments

If you look up wmouse_trafo, you will see that it should take a const WINDOW* https://linux.die.net/man/3/mouse_trafo. Here are the places that take it mutably:

pub fn wmouse_trafo(_:*mut WINDOW,_:*mut c_int,_:*mut c_int,_:c_bool) -> c_bool;

pub fn wmouse_trafo(w: *mut WINDOW, y: &mut[i32], x: &mut[i32], to_screen: bool) -> bool

I believe the correct thing to do is replace *mut WINDOW with just WINDOW as used in the other functions in these files.

jeaye commented

Thanks! This is now published.