Reversed test to be easier to read, more efficient, and match other code
This commit is contained in:
parent
bddbd1e317
commit
0baee3e676
1 changed files with 1 additions and 1 deletions
|
@ -2210,7 +2210,7 @@ void Cocoa_SetWindowSize(SDL_VideoDevice *_this, SDL_Window *window)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* isZoomed always returns true if the window is not resizable */
|
/* 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)) {
|
if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
|
||||||
[nswindow setFrame:[nswindow frameRectForContentRect:rect] display:YES];
|
[nswindow setFrame:[nswindow frameRectForContentRect:rect] display:YES];
|
||||||
ScheduleContextUpdates(windata);
|
ScheduleContextUpdates(windata);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue