Commit ddba0554 authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Get rid of the non-standard flags in GetRasterizerCaps.

parent 3176d4d4
......@@ -916,6 +916,7 @@ static BOOL is_hinting_enabled(void)
}
#endif
else enabled = FALSE;
TRACE("hinting is %senabled\n", enabled ? "" : "NOT ");
}
return enabled;
}
......@@ -925,8 +926,11 @@ static BOOL is_subpixel_rendering_enabled( void )
#ifdef HAVE_FREETYPE_FTLCDFIL_H
static int enabled = -1;
if (enabled == -1)
{
enabled = (pFT_Library_SetLcdFilter &&
pFT_Library_SetLcdFilter( NULL, 0 ) != FT_Err_Unimplemented_Feature);
TRACE("subpixel rendering is %senabled\n", enabled ? "" : "NOT ");
}
return enabled;
#else
return FALSE;
......@@ -7556,25 +7560,8 @@ static BOOL freetype_FontIsLinked( PHYSDEV dev )
*/
BOOL WINAPI GetRasterizerCaps( LPRASTERIZER_STATUS lprs, UINT cbNumBytes)
{
static int hinting = -1;
static int subpixel = -1;
if(hinting == -1)
{
hinting = is_hinting_enabled();
TRACE("hinting is %senabled\n", hinting ? "" : "NOT ");
}
if ( subpixel == -1 )
{
subpixel = is_subpixel_rendering_enabled();
TRACE("subpixel rendering is %senabled\n", subpixel ? "" : "NOT ");
}
lprs->nSize = sizeof(RASTERIZER_STATUS);
lprs->wFlags = TT_AVAILABLE | TT_ENABLED | (hinting ? WINE_TT_HINTER_ENABLED : 0);
if ( subpixel )
lprs->wFlags |= WINE_TT_SUBPIXEL_RENDERING_ENABLED;
lprs->wFlags = TT_AVAILABLE | TT_ENABLED;
lprs->nLanguageID = 0;
return TRUE;
}
......
......@@ -1459,11 +1459,6 @@ typedef struct
#define TT_AVAILABLE 0x0001
#define TT_ENABLED 0x0002
#ifdef __WINESRC__
#define WINE_TT_SUBPIXEL_RENDERING_ENABLED 0x4000
#define WINE_TT_HINTER_ENABLED 0x8000
#endif
#define TT_PRIM_LINE 1
#define TT_PRIM_QSPLINE 2
#define TT_PRIM_CSPLINE 3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment