[NTGDI] Add missing LPtoDP in GreExtTextOutW (TA_UPDATECP). Fixes CORE-12218 without...
authorSebastian Gasiorek <sebastian.gasiorek@reactos.org>
Mon, 20 Mar 2017 22:40:52 +0000 (22:40 +0000)
committerSebastian Gasiorek <sebastian.gasiorek@reactos.org>
Mon, 20 Mar 2017 22:40:52 +0000 (22:40 +0000)
svn path=/trunk/; revision=74217

reactos/win32ss/gdi/ntgdi/freetype.c

index 2bc4dbd..c404f98 100644 (file)
@@ -4845,16 +4845,16 @@ GreExtTextOutW(
         IntLPtoDP(dc, (POINT *)lprc, 2);
     }
 
-    if(pdcattr->lTextAlign & TA_UPDATECP)
+    if (pdcattr->lTextAlign & TA_UPDATECP)
     {
         Start.x = pdcattr->ptlCurrent.x;
         Start.y = pdcattr->ptlCurrent.y;
     } else {
         Start.x = XStart;
         Start.y = YStart;
-        IntLPtoDP(dc, &Start, 1);
     }
 
+    IntLPtoDP(dc, &Start, 1);
     RealXStart = ((LONGLONG)Start.x + dc->ptlDCOrig.x) << 6;
     YStart = Start.y + dc->ptlDCOrig.y;