[PATCH] [Gdi32/FreeType]: use the effective bitmap size not the glyph metric
Eric Pouech
eric.pouech at orange.fr
Fri Jan 4 14:12:44 CST 2008
A+
---
dlls/gdi32/freetype.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index f8b4e92..a218dcc 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -3827,7 +3827,7 @@ DWORD WineEngGetGlyphOutline(GdiFont *incoming_font, UINT glyph, UINT format,
INT h = ft_face->glyph->bitmap.rows;
INT x;
while(h--) {
- for(x = 0; x < pitch; x++)
+ for(x = 0; x < ft_face->glyph->bitmap.width; x++)
dst[x] = (src[x / 8] & (1 << ( (7 - (x % 8))))) ? 0xff : 0;
src += ft_face->glyph->bitmap.pitch;
dst += pitch;
More information about the wine-patches
mailing list