Skip to content
Snippets Groups Projects
Commit f51c219b authored by Emmanuel Gil Peyrot's avatar Emmanuel Gil Peyrot
Browse files

Handle maximized size correctly

parent 31cea7fa
Branches
No related tags found
No related merge requests found
...@@ -58,6 +58,12 @@ static void handleConfigure(void* data, ...@@ -58,6 +58,12 @@ static void handleConfigure(void* data,
if (!window->monitor) if (!window->monitor)
{ {
if (window->decorated)
{
width -= 2 * _GLFW_DECORATION_WIDTH;
height -= _GLFW_DECORATION_TOP + _GLFW_DECORATION_WIDTH;
}
if (window->numer != GLFW_DONT_CARE && window->denom != GLFW_DONT_CARE) if (window->numer != GLFW_DONT_CARE && window->denom != GLFW_DONT_CARE)
{ {
aspectRatio = (float)width / (float)height; aspectRatio = (float)width / (float)height;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment