Author: tkreuzer
Date: Mon Jul 30 05:26:57 2007
New Revision: 28027
URL:
http://svn.reactos.org/svn/reactos?rev=28027&view=rev
Log:
remove useless NtGdiOffsetRgn
Modified:
trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c Mon Jul 30 05:26:57 2007
@@ -79,21 +79,17 @@
dc->w.flags &= ~DC_DIRTY;
if (dc->w.hVisRgn == NULL)
- {
- dc->w.hVisRgn = NtGdiCreateRectRgn(0, 0, 0, 0);
- GDIOBJ_CopyOwnership(GdiHandleTable, hdc, dc->w.hVisRgn);
- }
- else
- {
- NtGdiOffsetRgn(dc->w.hVisRgn, dc->w.DCOrgX, dc->w.DCOrgY);
- }
+ {
+ dc->w.hVisRgn = NtGdiCreateRectRgn(0, 0, 0, 0);
+ GDIOBJ_CopyOwnership(GdiHandleTable, hdc, dc->w.hVisRgn);
+ }
retval = NtGdiCombineRgn(dc->w.hVisRgn, hrgn, 0, RGN_COPY);
if ( retval != ERROR )
- {
- NtGdiOffsetRgn(dc->w.hVisRgn, -dc->w.DCOrgX, -dc->w.DCOrgY);
- CLIPPING_UpdateGCRegion(dc);
- }
+ {
+ NtGdiOffsetRgn(dc->w.hVisRgn, -dc->w.DCOrgX, -dc->w.DCOrgY);
+ CLIPPING_UpdateGCRegion(dc);
+ }
DC_UnlockDc(dc);
return retval;