cocoa: Use CGFLOAT_MAX for unbounded max window dimensions
This commit is contained in:
parent
3519a59d8f
commit
10f51da28d
1 changed files with 2 additions and 2 deletions
|
@ -2532,8 +2532,8 @@ void Cocoa_SetWindowMaximumSize(SDL_VideoDevice *_this, SDL_Window *window)
|
|||
SDL_CocoaWindowData *windata = (__bridge SDL_CocoaWindowData *)window->internal;
|
||||
|
||||
NSSize maxSize;
|
||||
maxSize.width = window->max_w;
|
||||
maxSize.height = window->max_h;
|
||||
maxSize.width = window->max_w ? window->max_w : CGFLOAT_MAX;
|
||||
maxSize.height = window->max_h ? window->max_h : CGFLOAT_MAX;
|
||||
|
||||
[windata.nswindow setContentMaxSize:maxSize];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue