mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/ui: bug fix: collectionBehavior mattered for fullscreen
Closes #2238
This commit is contained in:
parent
205245b094
commit
a84a738360
@ -147,13 +147,13 @@ package ui
|
||||
//
|
||||
// // Even though EbitenWindowDelegate is used, this hack is still required.
|
||||
// // toggleFullscreen doesn't work when the window is not resizable.
|
||||
// bool origResizable = window.styleMask & NSWindowStyleMaskResizable;
|
||||
// if (!origResizable) {
|
||||
// window.styleMask |= NSWindowStyleMaskResizable;
|
||||
// bool origFullscreen = window.collectionBehavior & NSWindowCollectionBehaviorFullScreenPrimary;
|
||||
// if (!origFullscreen) {
|
||||
// window.collectionBehavior |= NSWindowCollectionBehaviorFullScreenPrimary;
|
||||
// }
|
||||
// [window toggleFullScreen:nil];
|
||||
// if (!origResizable) {
|
||||
// window.styleMask &= ~NSWindowStyleMaskResizable;
|
||||
// if (!origFullscreen) {
|
||||
// window.collectionBehavior &= ~NSWindowCollectionBehaviorFullScreenPrimary;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user