Author: gadamopoulos
Date: Wed May 19 21:08:25 2010
New Revision: 47281
URL:
http://svn.reactos.org/svn/reactos?rev=47281&view=rev
Log:
[win32k]
-Correctly adjust values returned from co_WinPosGetMinMaxInfo
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/window.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Wed May 19 21:08:25
2010
@@ -2219,21 +2219,15 @@
POINT MaxSize, MaxPos, MinTrack, MaxTrack;
/* WinPosGetMinMaxInfo sends the WM_GETMINMAXINFO message */
- co_WinPosGetMinMaxInfo(Window, &MaxSize, &MaxPos, &MinTrack,
- &MaxTrack);
- if (MaxSize.x < Size.cx)
- Size.cx = MaxSize.x;
- if (MaxSize.y < Size.cy)
- Size.cy = MaxSize.y;
- if (Size.cx < MinTrack.x )
- Size.cx = MinTrack.x;
- if (Size.cy < MinTrack.y )
- Size.cy = MinTrack.y;
- if (Size.cx < 0)
- Size.cx = 0;
- if (Size.cy < 0)
- Size.cy = 0;
- }
+ co_WinPosGetMinMaxInfo(Window, &MaxSize, &MaxPos, &MinTrack,
&MaxTrack);
+ if (Size.cx > MaxTrack.x) Size.cx = MaxTrack.x;
+ if (Size.cy > MaxTrack.y) Size.cy = MaxTrack.y;
+ if (Size.cx < MinTrack.x) Size.cx = MinTrack.x;
+ if (Size.cy < MinTrack.y) Size.cy = MinTrack.y;
+ }
+
+ if (Size.cx < 0) Size.cx = 0;
+ if (Size.cy < 0) Size.cy = 0;
Wnd->rcWindow.left = Pos.x;
Wnd->rcWindow.top = Pos.y;