[ros-diffs] [jimtabor] 34406: - This Patch fixes RestoreDC, also lots of visual glitches. Especially in Delphi applications. See bug 3491.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Thu Jul 10 13:12:15 CEST 2008


Author: jimtabor
Date: Thu Jul 10 06:12:14 2008
New Revision: 34406

URL: http://svn.reactos.org/svn/reactos?rev=34406&view=rev
Log:
- This Patch fixes RestoreDC, also lots of visual glitches. Especially in Delphi applications. See bug 3491.

Modified:
    trunk/reactos/subsystems/win32/win32k/objects/dc.c

Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/dc.c?rev=34406&r1=34405&r2=34406&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dc.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dc.c [iso-8859-1] Thu Jul 10 06:12:14 2008
@@ -1327,6 +1327,7 @@
   if(!nDc_Attr) nDc_Attr = &newdc->Dc_Attr;
 
   newdc->DcLevel.flPath     = dc->DcLevel.flPath | DCPATH_SAVESTATE;
+
   nDc_Attr->dwLayout        = Dc_Attr->dwLayout;
   nDc_Attr->hpen            = Dc_Attr->hpen;
   nDc_Attr->hbrush          = Dc_Attr->hbrush;
@@ -1358,7 +1359,6 @@
 #endif
   nDc_Attr->ptlCurrent      = Dc_Attr->ptlCurrent;
   nDc_Attr->ptfxCurrent     = Dc_Attr->ptfxCurrent;
-  newdc->DcLevel.flPath     = dc->DcLevel.flPath;
   newdc->DcLevel.xformWorld2Wnd   = dc->DcLevel.xformWorld2Wnd;
   newdc->DcLevel.xformWorld2Vport = dc->DcLevel.xformWorld2Vport;
   newdc->DcLevel.xformVport2World = dc->DcLevel.xformVport2World;
@@ -1425,7 +1425,6 @@
 #endif
   Dc_Attr->ptlCurrent      = sDc_Attr->ptlCurrent;
   Dc_Attr->ptfxCurrent     = sDc_Attr->ptfxCurrent;
-  dc->DcLevel.flPath       = dcs->DcLevel.flPath;
   dc->DcLevel.xformWorld2Wnd     = dcs->DcLevel.xformWorld2Wnd;
   dc->DcLevel.xformWorld2Vport   = dcs->DcLevel.xformWorld2Vport;
   dc->DcLevel.xformVport2World   = dcs->DcLevel.xformVport2World;



More information about the Ros-diffs mailing list