Ignore the gasp table when we have no hinter.

This commit is contained in:
Huw Davies 2005-10-06 12:28:19 +00:00 committed by Alexandre Julliard
parent 90020c953a
commit 422887f36f
1 changed files with 8 additions and 1 deletions

View File

@ -464,6 +464,7 @@ static int GetCacheEntry(X11DRV_PDEVICE *physDev, LFANDSIZE *plfsz)
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 *physDev, LFANDSIZE *plfsz)
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;