mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r25656) -Cleanup: Coding style.
This commit is contained in:
parent
a141a5dcad
commit
32d0a2322f
@ -290,16 +290,15 @@ bool WindowQuartzSubdriver::SetVideoMode(int width, int height, int bpp)
|
||||
const int NSWindowCollectionBehaviorFullScreenPrimary = 1 << 7;
|
||||
const int NSWindowFullScreenButton = 7;
|
||||
|
||||
NSWindowCollectionBehavior behavior = [this->window collectionBehavior];
|
||||
NSWindowCollectionBehavior behavior = [ this->window collectionBehavior ];
|
||||
behavior |= NSWindowCollectionBehaviorFullScreenPrimary;
|
||||
[window setCollectionBehavior:behavior];
|
||||
[ this->window setCollectionBehavior:behavior ];
|
||||
|
||||
NSButton* fullscreenButton =
|
||||
[this->window standardWindowButton:NSWindowFullScreenButton];
|
||||
[fullscreenButton setAction:@selector(toggleFullScreen:)];
|
||||
[fullscreenButton setTarget:this->window];
|
||||
NSButton* fullscreenButton = [ this->window standardWindowButton:NSWindowFullScreenButton ];
|
||||
[ fullscreenButton setAction:@selector(toggleFullScreen:) ];
|
||||
[ fullscreenButton setTarget:this->window ];
|
||||
|
||||
[this->window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenPrimary];
|
||||
[ this->window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenPrimary ];
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user