diff options
author | Grigori Goronzy <greg@blackbox> | 2009-07-10 23:55:02 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2009-07-11 00:03:56 +0200 |
commit | 613a22ab9b96453c10de6d75b43067652ad6d7db (patch) | |
tree | 76405fc5c113cb602f0778c85413fcb421aa127f /libass/ass_bitmap.c | |
parent | 9305f3815442f8c0bd735e96832b7f72628bfcad (diff) | |
download | libass-613a22ab9b96453c10de6d75b43067652ad6d7db.tar.bz2 libass-613a22ab9b96453c10de6d75b43067652ad6d7db.tar.xz |
Replace string defines with real strings
Instead of referencing string defines from help_mp.h, use the strings
directly in ass_msg. Consequently, help_mp.h is useless and can
be deleted.
Diffstat (limited to 'libass/ass_bitmap.c')
-rw-r--r-- | libass/ass_bitmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libass/ass_bitmap.c b/libass/ass_bitmap.c index 140cca2..a72caad 100644 --- a/libass/ass_bitmap.c +++ b/libass/ass_bitmap.c @@ -173,7 +173,7 @@ static int check_glyph_area(FT_Glyph glyph) dx = bbox.xMax - bbox.xMin; dy = bbox.yMax - bbox.yMin; if (dx * dy > 8000000) { - ass_msg(MSGL_WARN, MSGTR_LIBASS_GlyphBBoxTooLarge, + ass_msg(MSGL_WARN, "Glyph bounding box too large: %dx%dpx", (int) dx, (int) dy); return 1; } else @@ -195,7 +195,7 @@ static bitmap_t *glyph_to_bitmap_internal(FT_Glyph glyph, int bord) return 0; error = FT_Glyph_To_Bitmap(&glyph, FT_RENDER_MODE_NORMAL, 0, 0); if (error) { - ass_msg(MSGL_WARN, MSGTR_LIBASS_FT_Glyph_To_BitmapError, + ass_msg(MSGL_WARN, "FT_Glyph_To_Bitmap error %d", error); return 0; } @@ -203,7 +203,7 @@ static bitmap_t *glyph_to_bitmap_internal(FT_Glyph glyph, int bord) bg = (FT_BitmapGlyph) glyph; bit = &(bg->bitmap); if (bit->pixel_mode != FT_PIXEL_MODE_GRAY) { - ass_msg(MSGL_WARN, MSGTR_LIBASS_UnsupportedPixelMode, + ass_msg(MSGL_WARN, "Unsupported pixel mode: %d", (int) (bit->pixel_mode)); FT_Done_Glyph(glyph); return 0; |