comparison libass/ass_bitmap.c @ 20629:e8885ec63928

Introduce MSGT_ASS, use it for all libass messages.
author eugeni
date Fri, 03 Nov 2006 18:15:33 +0000
parents 5cbf1c33a668
children b6d87b58754f
comparison
equal deleted inserted replaced
20628:782c697bd4c2 20629:e8885ec63928
162 int i; 162 int i;
163 int error; 163 int error;
164 164
165 error = FT_Glyph_To_Bitmap(&glyph, FT_RENDER_MODE_NORMAL, 0, 0); 165 error = FT_Glyph_To_Bitmap(&glyph, FT_RENDER_MODE_NORMAL, 0, 0);
166 if (error) { 166 if (error) {
167 mp_msg(MSGT_GLOBAL, MSGL_WARN, "FT_Glyph_To_Bitmap error %d \n", error); 167 mp_msg(MSGT_ASS, MSGL_WARN, "FT_Glyph_To_Bitmap error %d \n", error);
168 return 0; 168 return 0;
169 } 169 }
170 170
171 bg = (FT_BitmapGlyph)glyph; 171 bg = (FT_BitmapGlyph)glyph;
172 bit = &(bg->bitmap); 172 bit = &(bg->bitmap);
173 if (bit->pixel_mode != FT_PIXEL_MODE_GRAY) { 173 if (bit->pixel_mode != FT_PIXEL_MODE_GRAY) {
174 mp_msg(MSGT_GLOBAL, MSGL_WARN, "Unsupported pixel mode: %d\n", (int)(bit->pixel_mode)); 174 mp_msg(MSGT_ASS, MSGL_WARN, "Unsupported pixel mode: %d\n", (int)(bit->pixel_mode));
175 FT_Done_Glyph(glyph); 175 FT_Done_Glyph(glyph);
176 return 0; 176 return 0;
177 } 177 }
178 178
179 w = bit->width; 179 w = bit->width;