gdi32: Move FT_Library_SetLcdFilter() to init_freetype().

Signed-off-by: Byeongsik Jeon <bsjeon@hanmail.net>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Byeongsik Jeon 2021-03-08 14:40:45 +00:00 committed by Alexandre Julliard
parent c2c3961cea
commit d6e83e3027
1 changed files with 5 additions and 4 deletions

View File

@ -1922,6 +1922,11 @@ static BOOL init_freetype(void)
pFT_Property_Set( library, "truetype", "interpreter-version", &interpreter_version ); pFT_Property_Set( library, "truetype", "interpreter-version", &interpreter_version );
} }
#ifdef FT_LCD_FILTER_H
if (pFT_Library_SetLcdFilter)
pFT_Library_SetLcdFilter( library, FT_LCD_FILTER_DEFAULT );
#endif
return TRUE; return TRUE;
sym_not_found: sym_not_found:
@ -3199,10 +3204,6 @@ static DWORD get_subpixel_glyph_bitmap( FT_GlyphSlot glyph, FT_BBox bbox, UINT f
if (needs_transform) if (needs_transform)
pFT_Outline_Transform( &glyph->outline, &matrices[matrix_vert] ); pFT_Outline_Transform( &glyph->outline, &matrices[matrix_vert] );
#ifdef FT_LCD_FILTER_H
if (pFT_Library_SetLcdFilter)
pFT_Library_SetLcdFilter( library, FT_LCD_FILTER_DEFAULT );
#endif
pFT_Render_Glyph( glyph, render_mode ); pFT_Render_Glyph( glyph, render_mode );
src_pitch = glyph->bitmap.pitch; src_pitch = glyph->bitmap.pitch;