Author: sgasiorek
Date: Mon Mar 20 22:40:52 2017
New Revision: 74217
URL:
http://svn.reactos.org/svn/reactos?rev=74217&view=rev
Log:
[NTGDI] Add missing LPtoDP in GreExtTextOutW (TA_UPDATECP). Fixes CORE-12218 without
breaking CORE-11415
Modified:
trunk/reactos/win32ss/gdi/ntgdi/freetype.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/freetype.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/freetype…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/freetype.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/freetype.c [iso-8859-1] Mon Mar 20 22:40:52 2017
@@ -4845,16 +4845,16 @@
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;