https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4abba2b7acaca81593ef0…
commit 4abba2b7acaca81593ef04d9dbe78ee838adc9fc
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sat Nov 3 05:37:05 2018 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Nov 3 05:37:05 2018 +0900
[WIN32SS][FONT] Improve Precision Penalty (#1006)
---
win32ss/gdi/ntgdi/freetype.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c
index f1dee700b7..6e06763a69 100644
--- a/win32ss/gdi/ntgdi/freetype.c
+++ b/win32ss/gdi/ntgdi/freetype.c
@@ -4456,10 +4456,11 @@ GetFontPenalty(const LOGFONTW * LogFont,
}
Byte = LogFont->lfOutPrecision;
- if (Byte == OUT_DEFAULT_PRECIS)
- Byte = OUT_OUTLINE_PRECIS; /* Is it OK? */
switch (Byte)
{
+ case OUT_DEFAULT_PRECIS:
+ /* nothing to do */
+ break;
case OUT_DEVICE_PRECIS:
if (!(TM->tmPitchAndFamily & TMPF_DEVICE) ||
!(TM->tmPitchAndFamily & (TMPF_VECTOR | TMPF_TRUETYPE)))