[WIN32K]
authorJérôme Gardou <jerome.gardou@reactos.org>
Wed, 19 May 2010 17:41:56 +0000 (17:41 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Wed, 19 May 2010 17:41:56 +0000 (17:41 +0000)
   Some cleanup, no code change.

svn path=/branches/reactos-yarotows/; revision=47279

subsystems/win32/win32k/ntuser/monitor.c
subsystems/win32/win32k/ntuser/painting.c
subsystems/win32/win32k/objects/cliprgn.c
subsystems/win32/win32k/objects/region.c

index 2061e40..ec84942 100644 (file)
@@ -506,7 +506,7 @@ NtUserEnumDisplayMonitors(
          /* FIXME: setlasterror? */
          return -1;
       }
-      dcVisRgn = ((PROSRGNDATA)dc->prgnVis)->BaseObject.hHmgr;
+      dcVisRgn = dc->prgnVis->BaseObject.hHmgr;
       DC_UnlockDc(dc);
 
       regionType = NtGdiGetRgnBox(dcVisRgn, &dcRect);
index c0e0484..5ecce2f 100644 (file)
@@ -1206,7 +1206,7 @@ UserScrollDC(
       {
          return FALSE;
       }
-      hrgnVisible = ((PROSRGNDATA)pDC->prgnVis)->BaseObject.hHmgr;  // pDC->prgnRao?
+      hrgnVisible = pDC->prgnVis->BaseObject.hHmgr;  // pDC->prgnRao?
       DC_UnlockDc(pDC);
 
       /* Begin with the shifted and then clipped scroll rect */
index cfa2c75..6ef8ed7 100644 (file)
@@ -37,7 +37,7 @@ CLIPPING_UpdateGCRegion(DC* Dc)
    }
    else
    {
-       hRgnVis = ((PROSRGNDATA)Dc->prgnVis)->BaseObject.hHmgr ;
+       hRgnVis = Dc->prgnVis->BaseObject.hHmgr ;
    }
 
 
@@ -94,13 +94,13 @@ GdiSelectVisRgn(HDC hdc, HRGN hrgn)
   if (dc->prgnVis == NULL)
   {
     dc->prgnVis = IntSysCreateRectpRgn(0, 0, 0, 0);
-    GDIOBJ_CopyOwnership(hdc, ((PROSRGNDATA)dc->prgnVis)->BaseObject.hHmgr);
+    GDIOBJ_CopyOwnership(hdc, dc->prgnVis->BaseObject.hHmgr);
   }
 
-  retval = NtGdiCombineRgn(((PROSRGNDATA)dc->prgnVis)->BaseObject.hHmgr, hrgn, 0, RGN_COPY);
+  retval = NtGdiCombineRgn(dc->prgnVis->BaseObject.hHmgr, hrgn, 0, RGN_COPY);
   if ( retval != ERROR )
   {
-    NtGdiOffsetRgn(((PROSRGNDATA)dc->prgnVis)->BaseObject.hHmgr, -dc->ptlDCOrig.x, -dc->ptlDCOrig.y);
+    IntGdiOffsetRgn(dc->prgnVis, -dc->ptlDCOrig.x, -dc->ptlDCOrig.y);
     CLIPPING_UpdateGCRegion(dc);
   }
   DC_UnlockDc(dc);
index cc9fa31..e5fe56a 100644 (file)
@@ -3691,7 +3691,7 @@ NtGdiGetRandomRgn(
         else if (pDC->dclevel.prgnMeta) hSrc = ((PROSRGNDATA)pDC->dclevel.prgnMeta)->BaseObject.hHmgr;
         break;
     case SYSRGN:
-        if (pDC->prgnVis) hSrc = ((PROSRGNDATA)pDC->prgnVis)->BaseObject.hHmgr;
+        if (pDC->prgnVis) hSrc = pDC->prgnVis->BaseObject.hHmgr;
         break;
     default:
         hSrc = 0;