mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-05 23:10:58 +00:00
cocoa: Fix conditional coding style
This commit is contained in:
parent
d4225070ad
commit
7c5c88a3ad
1 changed files with 3 additions and 3 deletions
|
@ -106,14 +106,14 @@
|
||||||
*/
|
*/
|
||||||
if ([menuItem action] == @selector(toggleFullScreen:)) {
|
if ([menuItem action] == @selector(toggleFullScreen:)) {
|
||||||
SDL_Window *window = [self findSDLWindow];
|
SDL_Window *window = [self findSDLWindow];
|
||||||
if (window == NULL) {
|
if (!window) {
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_CocoaWindowData *data = (__bridge SDL_CocoaWindowData *)window->internal;
|
SDL_CocoaWindowData *data = (__bridge SDL_CocoaWindowData *)window->internal;
|
||||||
if (window->flags & SDL_WINDOW_FULLSCREEN && ![data.listener isInFullscreenSpace]) {
|
if ((window->flags & SDL_WINDOW_FULLSCREEN) && ![data.listener isInFullscreenSpace]) {
|
||||||
return NO;
|
return NO;
|
||||||
} else if ((window->flags & SDL_WINDOW_RESIZABLE) == 0) {
|
} else if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue