- Fix order of calls in IntGdiPolygon. Check for PATH first.
authorJames Tabor <james.tabor@reactos.org>
Sat, 4 Oct 2008 23:34:04 +0000 (23:34 +0000)
committerJames Tabor <james.tabor@reactos.org>
Sat, 4 Oct 2008 23:34:04 +0000 (23:34 +0000)
svn path=/trunk/; revision=36650

reactos/subsystems/win32/win32k/objects/fillshap.c

index d6a50bc..4e0a3f2 100644 (file)
@@ -539,6 +539,11 @@ IntRectangle(PDC dc,
     Dc_Attr = dc->pDc_Attr;
     if(!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
 
+    if ( PATH_IsPathOpen(dc->DcLevel) )
+    {
+        return PATH_Rectangle ( dc, LeftRect, TopRect, RightRect, BottomRect );
+    }
+
     /* Do we rotate or shear? */
     if (!(dc->DcLevel.mxWorldToDevice.flAccel & MX_SCALE))
     {
@@ -550,11 +555,6 @@ IntRectangle(PDC dc,
         return IntGdiPolygon(dc, DestCoords, 4);
     }
 
-    if ( PATH_IsPathOpen(dc->DcLevel) )
-    {
-        return PATH_Rectangle ( dc, LeftRect, TopRect, RightRect, BottomRect );
-    }
-
     DestRect.left = LeftRect;
     DestRect.right = RightRect;
     DestRect.top = TopRect;