https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6ee576f91deeb88cf2146…
commit 6ee576f91deeb88cf21462e9a7f5b6bef5513c74
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Dec 27 09:23:49 2018 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Thu Dec 27 09:23:49 2018 +0900
[FONT][WIN32SS] Optimize a bit
---
win32ss/gdi/ntgdi/freetype.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c
index 0bdc40719a..cd548a5bca 100644
--- a/win32ss/gdi/ntgdi/freetype.c
+++ b/win32ss/gdi/ntgdi/freetype.c
@@ -5806,6 +5806,8 @@ GreExtTextOutW(
DxShift = fuOptions & ETO_PDY ? 1 : 0;
use_kerning = FT_HAS_KERNING(face);
previous = 0;
+ if ((fuOptions & ETO_OPAQUE) ||
+ (pdcattr->lTextAlign & (TA_CENTER | TA_RIGHT)))
{
TextLeft = RealXStart;
TextTop = YStart;