mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-21 21:22:44 +00:00
Fix SDL_SysWMinfo usage on macOS
This commit is contained in:
parent
83ba76a5ae
commit
b2b8406192
|
@ -242,7 +242,7 @@ impl SDL2EventLoop {
|
||||||
let mut whandle = self.refs.deref().borrow().window.window().raw();
|
let mut whandle = self.refs.deref().borrow().window.window().raw();
|
||||||
|
|
||||||
if sdl2_sys::SDL_GetWindowWMInfo(whandle, &mut winfo as *mut _) != sdl2_sys::SDL_bool::SDL_FALSE {
|
if sdl2_sys::SDL_GetWindowWMInfo(whandle, &mut winfo as *mut _) != sdl2_sys::SDL_bool::SDL_FALSE {
|
||||||
let window = winfo.info.x11.display as *mut objc2::runtime::AnyObject;
|
let window = winfo.info.cocoa.window as *mut objc2::runtime::AnyObject;
|
||||||
|
|
||||||
if enabled {
|
if enabled {
|
||||||
let _: () = msg_send![window, setTitlebarAppearsTransparent:YES];
|
let _: () = msg_send![window, setTitlebarAppearsTransparent:YES];
|
||||||
|
|
Loading…
Reference in a new issue