emoon / rust_minifb

Cross platfrom window and framebuffer crate for Rust
MIT License
1.02k stars 97 forks source link

Fix compilation of minifb's X11 binding for 32-bit #308

Closed HBehrens closed 1 year ago

HBehrens commented 1 year ago

FFI signature of x11::xlib::XTranslateCoordinates expects a *mut c_ulong. Changing the cast to that instead of *mut u64 makes this compile on 32-bit systems.

I can also confirm that the various examples run fine inside an arm32v7 docker image via X11.

emoon commented 1 year ago

Thanks!