Author: jimtabor
Date: Thu Jul  6 19:06:29 2017
New Revision: 75293

URL: http://svn.reactos.org/svn/reactos?rev=75293&view=rev
Log:
[NtUser]
- Part of CORE-13110. Set DC window rectangle and pointer.

Modified:
    trunk/reactos/win32ss/user/ntuser/windc.c

Modified: trunk/reactos/win32ss/user/ntuser/windc.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/windc.c?rev=75293&r1=75292&r2=75293&view=diff
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/windc.c   [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/windc.c   [iso-8859-1] Thu Jul  6 
19:06:29 2017
@@ -146,30 +146,22 @@
                 ULONG Flags,
                 BOOL SetClipOrigin)
 {
-  DC *dc = DC_LockDc(hDC);
-  if(!dc)
-      return;
-
-  if (Window == NULL)
-  {
-      dc->ptlDCOrig.x = 0;
-      dc->ptlDCOrig.y = 0;
-  }
-  else
+  RECTL rect;
+
+  if (Window)
   {
       if (Flags & DCX_WINDOW)
       {
-         dc->ptlDCOrig.x = Window->rcWindow.left;
-         dc->ptlDCOrig.y = Window->rcWindow.top;
+         rect = Window->rcWindow;
       }
       else
       {
-         dc->ptlDCOrig.x = Window->rcClient.left;
-         dc->ptlDCOrig.y = Window->rcClient.top;
-      }
-  }
-  dc->fs |= DC_FLAG_DIRTY_RAO;
-  DC_UnlockDc(dc);
+         rect = Window->rcClient;
+      }
+  }
+
+  /* Set DC Origin and Window Rectangle */
+  GreSetDCOrg( hDC, rect.left, rect.top, &rect);
 }
 
 


Reply via email to