gdi32: Fix an unused variable warning.
This commit is contained in:
parent
ebcef4a5f6
commit
20c24fd3a2
|
@ -4040,21 +4040,23 @@ BOOL WINAPI FontIsLinked(HDC hdc)
|
||||||
|
|
||||||
static BOOL is_hinting_enabled(void)
|
static BOOL is_hinting_enabled(void)
|
||||||
{
|
{
|
||||||
FT_Module mod;
|
|
||||||
|
|
||||||
/* Use the >= 2.2.0 function if available */
|
/* Use the >= 2.2.0 function if available */
|
||||||
if(pFT_Get_TrueType_Engine_Type)
|
if(pFT_Get_TrueType_Engine_Type)
|
||||||
{
|
{
|
||||||
FT_TrueTypeEngineType type = pFT_Get_TrueType_Engine_Type(library);
|
FT_TrueTypeEngineType type = pFT_Get_TrueType_Engine_Type(library);
|
||||||
return type == FT_TRUETYPE_ENGINE_TYPE_PATENTED;
|
return type == FT_TRUETYPE_ENGINE_TYPE_PATENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* otherwise if we've been compiled with < 2.2.0 headers
|
|
||||||
use the internal macro */
|
|
||||||
#ifdef FT_DRIVER_HAS_HINTER
|
#ifdef FT_DRIVER_HAS_HINTER
|
||||||
mod = pFT_Get_Module(library, "truetype");
|
else
|
||||||
if(mod && FT_DRIVER_HAS_HINTER(mod))
|
{
|
||||||
return TRUE;
|
FT_Module mod;
|
||||||
|
|
||||||
|
/* otherwise if we've been compiled with < 2.2.0 headers
|
||||||
|
use the internal macro */
|
||||||
|
mod = pFT_Get_Module(library, "truetype");
|
||||||
|
if(mod && FT_DRIVER_HAS_HINTER(mod))
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue