mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 21:55:08 +00:00
GetClipRgn: use NtGdiGetRandomRgn
svn path=/trunk/; revision=28236
This commit is contained in:
parent
3976fc7361
commit
a10bbf4d75
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue