4b3e5a70563882f777ae79a068e5e332c7a173c9
[reactos.git] / reactos / 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