mirror of
https://github.com/reactos/reactos.git
synced 2024-07-03 19:24:20 +00:00
Add RECTL_vMakeWellOrdered
svn path=/trunk/; revision=40492
This commit is contained in:
parent
154af4036b
commit
4b6c957b35
|
@ -54,7 +54,9 @@ BOOL
|
||||||
FASTCALL
|
FASTCALL
|
||||||
RECTL_bIntersectRect(RECTL *prclDst, const RECTL *prcl1, const RECTL *prcl2);
|
RECTL_bIntersectRect(RECTL *prclDst, const RECTL *prcl1, const RECTL *prcl2);
|
||||||
|
|
||||||
|
VOID
|
||||||
|
FASTCALL
|
||||||
|
RECTL_vMakeWellOrdered(RECTL *prcl);
|
||||||
|
|
||||||
|
|
||||||
#endif /* _WIN32K_RECT_H */
|
#endif /* _WIN32K_RECT_H */
|
||||||
|
|
|
@ -83,6 +83,24 @@ RECTL_bIntersectRect(RECTL* prclDst, const RECTL* prcl1, const RECTL* prcl2)
|
||||||
return FALSE;
|
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 */
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue