mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 13:46:37 +00:00
Handle maximized size correctly
This commit is contained in:
parent
c3816cf478
commit
fc2eb3de8f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user