[ros-diffs] [jgardou] 46932: [WIN32K] - call DC_vPrepareDCsForBlit / DC_vFinishBlit in the right place

jgardou at svn.reactos.org jgardou at svn.reactos.org
Mon Apr 19 01:48:12 CEST 2010


Author: jgardou
Date: Mon Apr 19 01:48:11 2010
New Revision: 46932

URL: http://svn.reactos.org/svn/reactos?rev=46932&view=rev
Log:
[WIN32K]
  - call DC_vPrepareDCsForBlit / DC_vFinishBlit in the right place

Modified:
    branches/reactos-yarotows/subsystems/win32/win32k/objects/line.c
    branches/reactos-yarotows/subsystems/win32/win32k/objects/path.c

Modified: branches/reactos-yarotows/subsystems/win32/win32k/objects/line.c
URL: http://svn.reactos.org/svn/reactos/branches/reactos-yarotows/subsystems/win32/win32k/objects/line.c?rev=46932&r1=46931&r2=46932&view=diff
==============================================================================
--- branches/reactos-yarotows/subsystems/win32/win32k/objects/line.c [iso-8859-1] (original)
+++ branches/reactos-yarotows/subsystems/win32/win32k/objects/line.c [iso-8859-1] Mon Apr 19 01:48:11 2010
@@ -435,8 +435,6 @@
     dc = DC_LockDc(hdc);
     if (!dc) return FALSE;
     pdcattr = dc->pdcattr;
-    DC_vPrepareDCsForBlit(dc, dc->rosdc.CombinedClip->rclBounds,
-                            NULL, dc->rosdc.CombinedClip->rclBounds);
 
     _SEH2_TRY
     {
@@ -503,7 +501,6 @@
     }
     _SEH2_END;
 
-    DC_vFinishBlit(dc, NULL);
     DC_UnlockDc(dc);
 
     return result;

Modified: branches/reactos-yarotows/subsystems/win32/win32k/objects/path.c
URL: http://svn.reactos.org/svn/reactos/branches/reactos-yarotows/subsystems/win32/win32k/objects/path.c?rev=46932&r1=46931&r2=46932&view=diff
==============================================================================
--- branches/reactos-yarotows/subsystems/win32/win32k/objects/path.c [iso-8859-1] (original)
+++ branches/reactos-yarotows/subsystems/win32/win32k/objects/path.c [iso-8859-1] Mon Apr 19 01:48:11 2010
@@ -2622,7 +2622,12 @@
   if (pdcattr->ulDirty_ & (DIRTY_LINE | DC_PEN_DIRTY))
      DC_vUpdateLineBrush(pDc);
 
+  DC_vPrepareDCsForBlit(pDc, pDc->rosdc.CombinedClip->rclBounds,
+                            NULL, pDc->rosdc.CombinedClip->rclBounds);
+
   bRet = PATH_StrokePath(pDc, pPath);
+
+  DC_vFinishBlit(pDc, NULL);
   PATH_EmptyPath(pPath);
 
   PATH_UnlockPath( pPath );




More information about the Ros-diffs mailing list