mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-24 07:09:00 +00:00
Reversed test to be easier to read, more efficient, and match other code
This commit is contained in:
@@ -2210,7 +2210,7 @@ void Cocoa_SetWindowSize(SDL_VideoDevice *_this, SDL_Window *window)
|
||||
}
|
||||
|
||||
/* isZoomed always returns true if the window is not resizable */
|
||||
if (!Cocoa_IsZoomed(window) || !(window->flags & SDL_WINDOW_RESIZABLE)) {
|
||||
if (!(window->flags & SDL_WINDOW_RESIZABLE) || !Cocoa_IsZoomed(window)) {
|
||||
if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
|
||||
[nswindow setFrame:[nswindow frameRectForContentRect:rect] display:YES];
|
||||
ScheduleContextUpdates(windata);
|
||||
|
||||
Reference in New Issue
Block a user