fonts: ignore the gasp table when we have no hinter
Huw D M Davies
h.davies1 at physics.ox.ac.uk
Wed Oct 5 06:00:58 CDT 2005
Huw Davies <huw at codeweavers.com>
Ignore the gasp table when we have no hinter.
--
Huw Davies
huw at codeweavers.com
Index: dlls/x11drv/xrender.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/xrender.c,v
retrieving revision 1.74
diff -u -p -r1.74 xrender.c
--- dlls/x11drv/xrender.c 23 Sep 2005 10:05:54 -0000 1.74
+++ dlls/x11drv/xrender.c 5 Oct 2005 10:58:56 -0000
@@ -464,6 +464,7 @@ static int GetCacheEntry(X11DRV_PDEVICE
int format;
gsCacheEntry *entry;
WORD flags;
+ static int hinter = -1;
if((ret = LookupEntry(plfsz)) != -1) return ret;
@@ -476,7 +477,13 @@ static int GetCacheEntry(X11DRV_PDEVICE
if(antialias && plfsz->lf.lfQuality != NONANTIALIASED_QUALITY)
{
- if(!get_gasp_flags(physDev, &flags) || flags & GASP_DOGRAY)
+ if(hinter == -1)
+ {
+ RASTERIZER_STATUS status;
+ GetRasterizerCaps(&status, sizeof(status));
+ hinter = status.wFlags & WINE_TT_HINTER_ENABLED;
+ }
+ if(!hinter || !get_gasp_flags(physDev, &flags) || flags & GASP_DOGRAY)
entry->aa_default = AA_Grey;
else
entry->aa_default = AA_None;
More information about the wine-patches
mailing list