|
|
|
@ -292,10 +292,9 @@ bool WindowQuartzSubdriver::SetVideoMode(int width, int height, int bpp)
|
|
|
|
|
|
|
|
|
|
NSWindowCollectionBehavior behavior = [ this->window collectionBehavior ];
|
|
|
|
|
behavior |= NSWindowCollectionBehaviorFullScreenPrimary;
|
|
|
|
|
[window setCollectionBehavior:behavior];
|
|
|
|
|
[ this->window setCollectionBehavior:behavior ];
|
|
|
|
|
|
|
|
|
|
NSButton* fullscreenButton =
|
|
|
|
|
[this->window standardWindowButton:NSWindowFullScreenButton];
|
|
|
|
|
NSButton* fullscreenButton = [ this->window standardWindowButton:NSWindowFullScreenButton ];
|
|
|
|
|
[ fullscreenButton setAction:@selector(toggleFullScreen:) ];
|
|
|
|
|
[ fullscreenButton setTarget:this->window ];
|
|
|
|
|
|
|
|
|
|