Fixed glfwGetFramebufferSize on OS X.
This commit is contained in:
parent
a7ff236b32
commit
eba8168a03
@ -102,6 +102,8 @@ See the [GLFW 3.0 documentation](http://www.glfw.org/docs/3.0/).
|
|||||||
|
|
||||||
- Bugfix: The wrong name was used for the CMake variable for the Xxf86vm
|
- Bugfix: The wrong name was used for the CMake variable for the Xxf86vm
|
||||||
library
|
library
|
||||||
|
- [Cocoa] Bugfix: `glfwGetFramebufferSize` return the size in screen
|
||||||
|
coordinates
|
||||||
- [Win32] Bugfix: Context creation was attempted even if no valid pixel formats
|
- [Win32] Bugfix: Context creation was attempted even if no valid pixel formats
|
||||||
had been found
|
had been found
|
||||||
- [X11] Bugfix: Duplicate window position and window and framebuffer size
|
- [X11] Bugfix: Duplicate window position and window and framebuffer size
|
||||||
@ -154,6 +156,7 @@ skills.
|
|||||||
- Stefan Gustavson
|
- Stefan Gustavson
|
||||||
- Sylvain Hellegouarch
|
- Sylvain Hellegouarch
|
||||||
- heromyth
|
- heromyth
|
||||||
|
- Paul Holden
|
||||||
- Toni Jovanoski
|
- Toni Jovanoski
|
||||||
- Osman Keskin
|
- Osman Keskin
|
||||||
- Cameron King
|
- Cameron King
|
||||||
|
@ -942,7 +942,13 @@ void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height)
|
|||||||
|
|
||||||
void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height)
|
void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height)
|
||||||
{
|
{
|
||||||
_glfwPlatformGetWindowSize(window, width, height);
|
const NSRect contentRect = [window->ns.view frame];
|
||||||
|
const NSRect fbRect = [window->ns.view convertRectToBacking:contentRect];
|
||||||
|
|
||||||
|
if (width)
|
||||||
|
*width = (int) fbRect.size.width;
|
||||||
|
if (height)
|
||||||
|
*height = (int) fbRect.size.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
void _glfwPlatformIconifyWindow(_GLFWwindow* window)
|
void _glfwPlatformIconifyWindow(_GLFWwindow* window)
|
||||||
|
Loading…
Reference in New Issue
Block a user