cocoa: Use CGFLOAT_MAX for unbounded max window dimensions
This commit is contained in:
1 parent
3519a59d8f
commit
10f51da28d
1 file changed
+2
-2
@@ -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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user