[PATCH 0/1] MR6914: win32u: Use LCD-optimezed rendering mode for text drawing.
Log: Signed-off-by: chenjiangyi <chenjiangyi(a)uniontech.com> Change-Id: If35310eb8df08f39e04066b59c6b907d89c7dd9b -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6914
From: chenjiangyi <chenjiangyi(a)uniontech.com> Log: Signed-off-by: chenjiangyi <chenjiangyi(a)uniontech.com> Change-Id: If35310eb8df08f39e04066b59c6b907d89c7dd9b --- dlls/win32u/freetype.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/win32u/freetype.c b/dlls/win32u/freetype.c index d1e46a681ea..fc24c008610 100644 --- a/dlls/win32u/freetype.c +++ b/dlls/win32u/freetype.c @@ -1499,6 +1499,9 @@ static UINT parse_aa_pattern( FcPattern *pattern ) if (pFcPatternGetBool( pattern, FC_ANTIALIAS, 0, &antialias ) == FcResultMatch) aa_flags = antialias ? GGO_GRAY4_BITMAP : GGO_BITMAP; + if (is_subpixel_rendering_enabled()) + aa_flags = WINE_GGO_HRGB_BITMAP; + if (pFcPatternGetInteger( pattern, FC_RGBA, 0, &rgba ) == FcResultMatch) { switch (rgba) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6914
This merge request was closed by JiangYi Chen. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6914
participants (2)
-
chenjiangyi -
JiangYi Chen (@meshine)