From ebaf5ea17623268fb1c0f68b1cf9a5984bd4e46e Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 15 Nov 2012 13:29:21 +0100 Subject: [PATCH] gdi32: Don't load bitmap glyphs when using subpixel rendering in GetGlyphOutline. --- dlls/gdi32/freetype.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c index 79a0975b9ae..98c66a0ea57 100644 --- a/dlls/gdi32/freetype.c +++ b/dlls/gdi32/freetype.c @@ -5997,12 +5997,7 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format, needsTransform = TRUE; } - if (needsTransform || (format == GGO_NATIVE || format == GGO_BEZIER || - format == GGO_GRAY2_BITMAP || format == GGO_GRAY4_BITMAP || - format == GGO_GRAY8_BITMAP)) - { - load_flags |= FT_LOAD_NO_BITMAP; - } + if (needsTransform || format != GGO_BITMAP) load_flags |= FT_LOAD_NO_BITMAP; err = pFT_Load_Glyph(ft_face, glyph_index, load_flags);