mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-14 13:56:00 +00:00
cocoa: Fix conditional coding style
This commit is contained in:
@@ -106,14 +106,14 @@
|
||||
*/
|
||||
if ([menuItem action] == @selector(toggleFullScreen:)) {
|
||||
SDL_Window *window = [self findSDLWindow];
|
||||
if (window == NULL) {
|
||||
if (!window) {
|
||||
return NO;
|
||||
}
|
||||
|
||||
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;
|
||||
} else if ((window->flags & SDL_WINDOW_RESIZABLE) == 0) {
|
||||
} else if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user