[ros-diffs] [tkreuzer] 28236: GetClipRgn: use NtGdiGetRandomRgn

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Wed Aug 8 03:03:55 CEST 2007


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/region.c?rev=28236&r1=28235&r2=28236&view=diff
==============================================================================
--- 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);
 }
 
 




More information about the Ros-diffs mailing list