mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 19:26:16 +00:00
GetClipRgn: use NtGdiGetRandomRgn
svn path=/trunk/; revision=28236
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user