mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 10:48:51 -05:00
Fix OS X default max window size
This commit is contained in:
parent
9a78fd049d
commit
86751b42a6
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
|
#include <float.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
// Needed for _NSGetProgname
|
// Needed for _NSGetProgname
|
||||||
|
@ -1086,7 +1087,7 @@ void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window,
|
||||||
[window->ns.object setContentMinSize:NSMakeSize(minwidth, minheight)];
|
[window->ns.object setContentMinSize:NSMakeSize(minwidth, minheight)];
|
||||||
|
|
||||||
if (maxwidth == GLFW_DONT_CARE || maxheight == GLFW_DONT_CARE)
|
if (maxwidth == GLFW_DONT_CARE || maxheight == GLFW_DONT_CARE)
|
||||||
[window->ns.object setContentMaxSize:NSMakeSize(0, 0)];
|
[window->ns.object setContentMaxSize:NSMakeSize(DBL_MAX, DBL_MAX)];
|
||||||
else
|
else
|
||||||
[window->ns.object setContentMaxSize:NSMakeSize(maxwidth, maxheight)];
|
[window->ns.object setContentMaxSize:NSMakeSize(maxwidth, maxheight)];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user