mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/ui: clean-up
This commit is contained in:
parent
cff99106b6
commit
58f95dd1e0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user