mirror of
https://github.com/reactos/wine.git
synced 2025-02-24 15:01:41 +00:00
Handle case when only height is set to CW_USEDEFAULT.
This commit is contained in:
parent
43f8aa4f77
commit
03ffadc499
@ -824,6 +824,13 @@ static void WIN_FixCoordinates( CREATESTRUCTA *cs, INT *sw)
|
||||
cs->cy = (((r.bottom - r.top) * 3) / 4) - cs->y;
|
||||
}
|
||||
}
|
||||
/* Handle case where only the cy values is set to default */
|
||||
else if (cs->cy == CW_USEDEFAULT || cs->cy == CW_USEDEFAULT16)
|
||||
{
|
||||
RECT r;
|
||||
SystemParametersInfoA( SPI_GETWORKAREA, 0, &r, 0);
|
||||
cs->cy = (((r.bottom - r.top) * 3) / 4) - cs->y;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user