Fixed glfwSetWindowSize not changing video mode.

glfwSetWindowSize did not change the video mode for full screen windows
on OS X.

Fixes #423.
master
Camilla Berglund ago%!(EXTRA string=11 years)
parent ead8a1c333
commit 21280ca775
  1. 3
      README.md
  2. 5
      src/cocoa_window.m

@ -62,6 +62,9 @@ GLFW bundles a number of dependencies in the `deps/` directory.
## Changelog
- [Cocoa] Bugfix: `glfwSetWindowSize` did not change the video mode for full
screen windows
## Contact

@ -990,7 +990,10 @@ void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height)
void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height)
{
[window->ns.object setContentSize:NSMakeSize(width, height)];
if (window->monitor)
enterFullscreenMode(window);
else
[window->ns.object setContentSize:NSMakeSize(width, height)];
}
void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height)

Loading…
Cancel
Save