mirror of https://github.com/OpenTTD/OpenTTD
(svn r25656) -Cleanup: Coding style.
parent
6d50b10074
commit
2702fe88d7
|
@ -290,16 +290,15 @@ bool WindowQuartzSubdriver::SetVideoMode(int width, int height, int bpp)
|
||||||
const int NSWindowCollectionBehaviorFullScreenPrimary = 1 << 7;
|
const int NSWindowCollectionBehaviorFullScreenPrimary = 1 << 7;
|
||||||
const int NSWindowFullScreenButton = 7;
|
const int NSWindowFullScreenButton = 7;
|
||||||
|
|
||||||
NSWindowCollectionBehavior behavior = [this->window collectionBehavior];
|
NSWindowCollectionBehavior behavior = [ this->window collectionBehavior ];
|
||||||
behavior |= NSWindowCollectionBehaviorFullScreenPrimary;
|
behavior |= NSWindowCollectionBehaviorFullScreenPrimary;
|
||||||
[window setCollectionBehavior:behavior];
|
[ this->window setCollectionBehavior:behavior ];
|
||||||
|
|
||||||
NSButton* fullscreenButton =
|
NSButton* fullscreenButton = [ this->window standardWindowButton:NSWindowFullScreenButton ];
|
||||||
[this->window standardWindowButton:NSWindowFullScreenButton];
|
[ fullscreenButton setAction:@selector(toggleFullScreen:) ];
|
||||||
[fullscreenButton setAction:@selector(toggleFullScreen:)];
|
[ fullscreenButton setTarget:this->window ];
|
||||||
[fullscreenButton setTarget:this->window];
|
|
||||||
|
|
||||||
[this->window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenPrimary];
|
[ this->window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenPrimary ];
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue