mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +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.
|
// Even though EbitengineWindowDelegate is used, this hack is still required.
|
||||||
// toggleFullscreen doesn't work when the window is not resizable.
|
// toggleFullscreen doesn't work when the window is not resizable.
|
||||||
origFullScreen := window.Send(sel_collectionBehavior)&cocoa.NSWindowCollectionBehaviorFullScreenPrimary != 0
|
|
||||||
origCollectionBehavior := window.Send(sel_collectionBehavior)
|
origCollectionBehavior := window.Send(sel_collectionBehavior)
|
||||||
|
origFullScreen := origCollectionBehavior&cocoa.NSWindowCollectionBehaviorFullScreenPrimary != 0
|
||||||
if !origFullScreen {
|
if !origFullScreen {
|
||||||
collectionBehavior := origCollectionBehavior
|
collectionBehavior := origCollectionBehavior
|
||||||
collectionBehavior |= cocoa.NSWindowCollectionBehaviorFullScreenPrimary
|
collectionBehavior |= cocoa.NSWindowCollectionBehaviorFullScreenPrimary
|
||||||
|
Loading…
Reference in New Issue
Block a user