mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Use MaxPos instead of MaxTrackingPos when "restoring" a window which was
previously maximized. Fixes bug 925. svn path=/trunk/; revision=18678
This commit is contained in:
parent
17b0ab5b83
commit
14f1738dcb
1 changed files with 2 additions and 3 deletions
|
@ -374,8 +374,8 @@ co_WinPosMinMaximize(PWINDOW_OBJECT Window, UINT ShowFlag, RECT* NewPos)
|
|||
Window->Style &= ~WS_MINIMIZE;
|
||||
if (Window->Flags & WINDOWOBJECT_RESTOREMAX)
|
||||
{
|
||||
co_WinPosGetMinMaxInfo(Window, NULL,
|
||||
&InternalPos->MaxPos, NULL, &Size);
|
||||
co_WinPosGetMinMaxInfo(Window, &Size,
|
||||
&InternalPos->MaxPos, NULL, NULL);
|
||||
Window->Style |= WS_MAXIMIZE;
|
||||
IntGdiSetRect(NewPos, InternalPos->MaxPos.x,
|
||||
InternalPos->MaxPos.y, Size.x, Size.y);
|
||||
|
@ -1359,7 +1359,6 @@ co_WinPosShowWindow(PWINDOW_OBJECT Window, INT Cmd)
|
|||
|
||||
case SW_SHOWMAXIMIZED:
|
||||
{
|
||||
//__asm__("int $3\n");
|
||||
Swp |= SWP_SHOWWINDOW;
|
||||
if (!(Window->Style & WS_MAXIMIZE))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue