internal/ui: clean-up

This commit is contained in:
Hajime Hoshi 2022-11-05 14:20:48 +09:00
parent cff99106b6
commit 58f95dd1e0

View File

@ -279,8 +279,8 @@ func (u *userInterfaceImpl) setNativeFullscreen(fullscreen bool) {
}
// Even though EbitengineWindowDelegate is used, this hack is still required.
// toggleFullscreen doesn't work when the window is not resizable.
origFullScreen := window.Send(sel_collectionBehavior)&cocoa.NSWindowCollectionBehaviorFullScreenPrimary != 0
origCollectionBehavior := window.Send(sel_collectionBehavior)
origFullScreen := origCollectionBehavior&cocoa.NSWindowCollectionBehaviorFullScreenPrimary != 0
if !origFullScreen {
collectionBehavior := origCollectionBehavior
collectionBehavior |= cocoa.NSWindowCollectionBehaviorFullScreenPrimary