Author: tkreuzer
Date: Tue Apr 14 01:38:37 2009
New Revision: 40492
URL:
http://svn.reactos.org/svn/reactos?rev=40492&view=rev
Log:
Add RECTL_vMakeWellOrdered
Modified:
trunk/reactos/subsystems/win32/win32k/include/rect.h
trunk/reactos/subsystems/win32/win32k/objects/rect.c
Modified: trunk/reactos/subsystems/win32/win32k/include/rect.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/rect.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/rect.h [iso-8859-1] Tue Apr 14 01:38:37
2009
@@ -54,7 +54,9 @@
FASTCALL
RECTL_bIntersectRect(RECTL *prclDst, const RECTL *prcl1, const RECTL *prcl2);
-
+VOID
+FASTCALL
+RECTL_vMakeWellOrdered(RECTL *prcl);
#endif /* _WIN32K_RECT_H */
Modified: trunk/reactos/subsystems/win32/win32k/objects/rect.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/rect.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/rect.c [iso-8859-1] Tue Apr 14 01:38:37
2009
@@ -83,6 +83,24 @@
return FALSE;
}
+VOID
+FASTCALL
+RECTL_vMakeWellOrdered(RECTL *prcl)
+{
+ LONG lTmp;
+ if (prcl->left > prcl->right)
+ {
+ lTmp = prcl->left;
+ prcl->left = prcl->right;
+ prcl->right = lTmp;
+ }
+ if (prcl->top > prcl->bottom)
+ {
+ lTmp = prcl->top;
+ prcl->top = prcl->bottom;
+ prcl->bottom = lTmp;
+ }
+}
/* EOF */