freetype: fix signed-ness fix

Huw D M Davies h.davies1 at physics.ox.ac.uk
Mon Aug 15 08:26:45 CDT 2005


        Huw Davies <huw at codeweavers.com>
        A previous signed-ness fix broke display of non-ansi chars,
        fix this.
-- 
Huw Davies
huw at codeweavers.com
Index: dlls/gdi/freetype.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/freetype.c,v
retrieving revision 1.90
diff -u -p -r1.90 freetype.c
--- dlls/gdi/freetype.c	8 Aug 2005 15:03:42 -0000	1.90
+++ dlls/gdi/freetype.c	15 Aug 2005 13:23:41 -0000
@@ -2212,7 +2212,7 @@ static FT_UInt get_glyph_index(GdiFont f
         WCHAR wc = (WCHAR)glyph;
         char buf;
         WideCharToMultiByte(font->codepage, 0, &wc, 1, &buf, sizeof(buf), 0, 0);
-        return pFT_Get_Char_Index(font->ft_face, buf);
+        return pFT_Get_Char_Index(font->ft_face, (unsigned char)buf);
     }
 
     if(font->charset == SYMBOL_CHARSET && glyph < 0x100)



More information about the wine-patches mailing list