Implement CreatePolygonRgn and partial implementation of CreatePolyPolygonRgn. Need...
[reactos.git] / reactos / dll / win32 / gdi32 / objects / region.c
1 #include "precomp.h"
2
3
4 /*
5 * @implemented
6 */
7 int
8 STDCALL
9 GetClipRgn(
10 HDC hdc,
11 HRGN hrgn
12 )
13 {
14 HRGN rgn = NtGdiGetClipRgn(hdc);
15 if(rgn)
16 {
17 if(NtGdiCombineRgn(hrgn, rgn, 0, RGN_COPY) != ERROR) return 1;
18 else
19 return -1;
20 }
21 else return 0;
22 }
23
24
25 HRGN
26 WINAPI
27 CreatePolygonRgn( const POINT* Point, int Count, int Mode)
28 {
29 return CreatePolyPolygonRgn(Point, (const INT*)&Count, 1, Mode);
30 }
31
32
33 HRGN
34 WINAPI
35 CreatePolyPolygonRgn( const POINT* Point,
36 const INT* Count,
37 int inPolygons,
38 int Mode)
39 {
40 /* return (HRGN) NtGdiPolyPolyDraw( (HDC) Mode,
41 (PPOINT) Point,
42 (PULONG) Count,
43 (ULONG) inPolygons,
44 GdiPolyPolyRgn );
45 */
46 }
47
48