Author: tkreuzer
Date: Wed Aug 8 05:03:54 2007
New Revision: 28236
URL:
http://svn.reactos.org/svn/reactos?rev=28236&view=rev
Log:
GetClipRgn: use NtGdiGetRandomRgn
Modified:
trunk/reactos/dll/win32/gdi32/objects/region.c
Modified: trunk/reactos/dll/win32/gdi32/objects/region.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/re…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/region.c (original)
+++ trunk/reactos/dll/win32/gdi32/objects/region.c Wed Aug 8 05:03:54 2007
@@ -24,14 +24,7 @@
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);
}