1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-03-23 18:39:20 +00:00

fix macOS builds

This commit is contained in:
Alula 2022-01-08 05:57:53 +01:00
parent 4f3312d9ca
commit b80f57ae49
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -141,7 +141,7 @@ impl BackendEventLoop for SDL2EventLoop {
winfo.version.minor = sdl2_sys::SDL_MINOR_VERSION as _;
winfo.version.patch = sdl2_sys::SDL_PATCHLEVEL as _;
let mut whandle = self.refs.borrow().canvas.window().raw();
let mut whandle = self.refs.deref().borrow().canvas.window().raw();
if sdl2_sys::SDL_GetWindowWMInfo(whandle, &mut winfo as *mut _) != sdl2_sys::SDL_bool::SDL_FALSE {
let window = winfo.info.x11.display as *mut objc::runtime::Object;