Mercurial > mplayer.hg
comparison libass/ass_bitmap.c @ 21066:6196ba31e97e
MSGTRs for libass
author | kraymer |
---|---|
date | Sun, 19 Nov 2006 22:35:17 +0000 |
parents | d138463e820b |
children | 71b3e04d0555 |
comparison
equal
deleted
inserted
replaced
21065:32839ebb8182 | 21066:6196ba31e97e |
---|---|
161 int i; | 161 int i; |
162 int error; | 162 int error; |
163 | 163 |
164 error = FT_Glyph_To_Bitmap(&glyph, FT_RENDER_MODE_NORMAL, 0, 0); | 164 error = FT_Glyph_To_Bitmap(&glyph, FT_RENDER_MODE_NORMAL, 0, 0); |
165 if (error) { | 165 if (error) { |
166 mp_msg(MSGT_ASS, MSGL_WARN, "FT_Glyph_To_Bitmap error %d \n", error); | 166 mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_FT_Glyph_To_BitmapError, error); |
167 return 0; | 167 return 0; |
168 } | 168 } |
169 | 169 |
170 bg = (FT_BitmapGlyph)glyph; | 170 bg = (FT_BitmapGlyph)glyph; |
171 bit = &(bg->bitmap); | 171 bit = &(bg->bitmap); |
172 if (bit->pixel_mode != FT_PIXEL_MODE_GRAY) { | 172 if (bit->pixel_mode != FT_PIXEL_MODE_GRAY) { |
173 mp_msg(MSGT_ASS, MSGL_WARN, "Unsupported pixel mode: %d\n", (int)(bit->pixel_mode)); | 173 mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_UnsupportedPixelMode, (int)(bit->pixel_mode)); |
174 FT_Done_Glyph(glyph); | 174 FT_Done_Glyph(glyph); |
175 return 0; | 175 return 0; |
176 } | 176 } |
177 | 177 |
178 w = bit->width; | 178 w = bit->width; |