From 86751b42a6119c34b90767f9d31f2ac6bfe64a2d Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 16 Mar 2016 15:05:50 +0100 Subject: [PATCH] Fix OS X default max window size --- src/cocoa_window.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 7ca03290..ebf736d0 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -26,6 +26,7 @@ #include "internal.h" +#include #include // Needed for _NSGetProgname @@ -1086,7 +1087,7 @@ void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, [window->ns.object setContentMinSize:NSMakeSize(minwidth, minheight)]; 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 [window->ns.object setContentMaxSize:NSMakeSize(maxwidth, maxheight)]; }