chiark / gitweb /
Merge tag 'upstream/1.19' into debian
[chroma-debian.git] / sdlfont.c
index 58103f98c6eeaa210bab877d7303d191e649e575..65214dc82a78dc41950931af3d66ff7f09d072d9 100644 (file)
--- a/sdlfont.c
+++ b/sdlfont.c
@@ -166,7 +166,7 @@ int font_calculate_width(char *text, int cache)
 {
     int n, x;
     FT_Glyph glyph;
-    Uint16 c;
+    Uint32 c;
     FT_UInt glyph_index;
 
     /* Determine width of text */
@@ -224,7 +224,7 @@ SDL_Surface* font_render(char *text, int foreground)
     int pass;
     Uint32 *dst;
     Uint32 colour;
-    Uint16 c;
+    Uint32 c;
     FT_UInt glyph_index;
     FT_Bitmap*  bitmap;