Commit 89ecf02c authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Get rid of the RGNOBJ type, instead store a pointer to the region itself.

parent dfeeedcf
......@@ -349,7 +349,12 @@ typedef struct
RECT *rects;
RECT extents;
} WINEREGION;
extern const WINEREGION *get_wine_region(HRGN rgn) DECLSPEC_HIDDEN;
/* return the region data without making a copy */
static inline const WINEREGION *get_wine_region(HRGN rgn)
{
return GDI_GetObjPtr( rgn, OBJ_REGION );
}
static inline void release_wine_region(HRGN rgn)
{
GDI_ReleaseObj(rgn);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment