|
@@ -1183,7 +1183,7 @@ void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window,
|
|
void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom)
|
|
void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom)
|
|
{
|
|
{
|
|
if (numer == GLFW_DONT_CARE || denom == GLFW_DONT_CARE)
|
|
if (numer == GLFW_DONT_CARE || denom == GLFW_DONT_CARE)
|
|
- [window->ns.object setContentAspectRatio:NSMakeSize(0, 0)];
|
|
|
|
|
|
+ [window->ns.object setResizeIncrements:NSMakeSize(1.0, 1.0)];
|
|
else
|
|
else
|
|
[window->ns.object setContentAspectRatio:NSMakeSize(numer, denom)];
|
|
[window->ns.object setContentAspectRatio:NSMakeSize(numer, denom)];
|
|
}
|
|
}
|