mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:52:56 +00:00
[Win32k]
- Add system region support functions. svn path=/trunk/; revision=45171
This commit is contained in:
parent
d0d7c7c47f
commit
1964950642
1 changed files with 35 additions and 0 deletions
|
@ -2186,6 +2186,40 @@ RGNOBJAPI_Unlock(PROSRGNDATA pRgn)
|
||||||
These regions do not use attribute sections and when allocated, use gdiobj
|
These regions do not use attribute sections and when allocated, use gdiobj
|
||||||
level functions.
|
level functions.
|
||||||
*/
|
*/
|
||||||
|
//
|
||||||
|
// System Region Functions
|
||||||
|
//
|
||||||
|
INT
|
||||||
|
FASTCALL
|
||||||
|
IntSysRegComplexity(HRGN hRgn)
|
||||||
|
{
|
||||||
|
PROSRGNDATA pRgn;
|
||||||
|
INT Ret;
|
||||||
|
|
||||||
|
pRgn = REGION_LockRgn(hRgn);
|
||||||
|
Ret = REGION_Complexity( pRgn );
|
||||||
|
REGION_UnlockRgn(pRgn);
|
||||||
|
return Ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
HRGN
|
||||||
|
FASTCALL
|
||||||
|
IntSysCreateRectRgn(INT LeftRect, INT TopRect, INT RightRect, INT BottomRect)
|
||||||
|
{
|
||||||
|
PROSRGNDATA pRgn;
|
||||||
|
HRGN hRgn;
|
||||||
|
|
||||||
|
pRgn = (PROSRGNDATA)GDIOBJ_AllocObjWithHandle(GDI_OBJECT_TYPE_REGION);
|
||||||
|
if (!pRgn)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
hRgn = pRgn->BaseObject.hHmgr;
|
||||||
|
pRgn->Buffer = &pRgn->rdh.rcBound;
|
||||||
|
REGION_SetRectRgn(pRgn, LeftRect, TopRect, RightRect, BottomRect);
|
||||||
|
REGION_UnlockRgn(pRgn);
|
||||||
|
return hRgn;
|
||||||
|
}
|
||||||
|
|
||||||
BOOL INTERNAL_CALL
|
BOOL INTERNAL_CALL
|
||||||
REGION_Cleanup(PVOID ObjectBody)
|
REGION_Cleanup(PVOID ObjectBody)
|
||||||
|
@ -2196,6 +2230,7 @@ REGION_Cleanup(PVOID ObjectBody)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// use REGION_FreeRgnByHandle(hRgn); for systems regions.
|
||||||
VOID FASTCALL
|
VOID FASTCALL
|
||||||
REGION_Delete(PROSRGNDATA pRgn)
|
REGION_Delete(PROSRGNDATA pRgn)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue