mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05:00
Fixed glfwSetWindowSize not changing video mode.
glfwSetWindowSize did not change the video mode for full screen windows on OS X. Fixes #423.
This commit is contained in:
parent
ead8a1c333
commit
21280ca775
|
@ -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,6 +990,9 @@ void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height)
|
|||
|
||||
void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height)
|
||||
{
|
||||
if (window->monitor)
|
||||
enterFullscreenMode(window);
|
||||
else
|
||||
[window->ns.object setContentSize:NSMakeSize(width, height)];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user