[PATCH v3 6/7] winex11.drv: Do not override AA flags in xrenderdrv_SelectFont().

Paul Gofman pgofman at codeweavers.com
Thu Dec 3 04:54:33 CST 2020


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45857
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
v3:
    - replaced [PATCH v2 4/6] winex11.drv: Do not set AA flags for font default AA in xrender backend,
      so device aa_flags get correct value.

 dlls/winex11.drv/xrender.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winex11.drv/xrender.c b/dlls/winex11.drv/xrender.c
index dc3bed2bfa0..be6db468e3c 100644
--- a/dlls/winex11.drv/xrender.c
+++ b/dlls/winex11.drv/xrender.c
@@ -892,10 +892,10 @@ static HFONT CDECL xrenderdrv_SelectFont( PHYSDEV dev, HFONT hfont, UINT *aa_fla
     HFONT ret;
 
     GetObjectW( hfont, sizeof(lfsz.lf), &lfsz.lf );
-    if (!*aa_flags) *aa_flags = get_xft_aa_flags( &lfsz.lf );
 
     ret = next->funcs->pSelectFont( next, hfont, aa_flags );
     if (!ret) return 0;
+    if (!*aa_flags) *aa_flags = get_xft_aa_flags( &lfsz.lf );
 
     switch (*aa_flags)
     {
-- 
2.28.0




More information about the wine-devel mailing list