GetClipRgn: use NtGdiGetRandomRgn

svn path=/trunk/; revision=28236
This commit is contained in:
Timo Kreuzer 2007-08-08 01:03:54 +00:00
parent 3976fc7361
commit a10bbf4d75

View file

@ -24,14 +24,7 @@ GetClipRgn(
HRGN hrgn
)
{
HRGN rgn = NtGdiGetClipRgn(hdc);
if(rgn)
{
if(NtGdiCombineRgn(hrgn, rgn, 0, RGN_COPY) != ERROR) return 1;
else
return -1;
}
else return 0;
return NtGdiGetRandomRgn(hdc, hrgn, 1);
}