Mercurial > mplayer.hg
comparison libass/ass_render.c @ 23030:8cf909e9f551
Cosmetics.
author | eugeni |
---|---|
date | Fri, 20 Apr 2007 23:23:32 +0000 |
parents | edb61a7aa38a |
children | 0438442ae1eb |
comparison
equal
deleted
inserted
replaced
23029:edb61a7aa38a | 23030:8cf909e9f551 |
---|---|
405 FT_Done_Glyph(text_info->glyphs[i].glyph); | 405 FT_Done_Glyph(text_info->glyphs[i].glyph); |
406 if (text_info->glyphs[i].outline_glyph) | 406 if (text_info->glyphs[i].outline_glyph) |
407 FT_Done_Glyph(text_info->glyphs[i].outline_glyph); | 407 FT_Done_Glyph(text_info->glyphs[i].outline_glyph); |
408 | 408 |
409 // cache | 409 // cache |
410 hash_val.bm_o = text_info->glyphs[i].bm_o; | 410 hash_val.bm_o = text_info->glyphs[i].bm_o; |
411 hash_val.bm = text_info->glyphs[i].bm; | 411 hash_val.bm = text_info->glyphs[i].bm; |
412 hash_val.bm_s = text_info->glyphs[i].bm_s; | 412 hash_val.bm_s = text_info->glyphs[i].bm_s; |
413 cache_add_bitmap(&(text_info->glyphs[i].hash_key), &hash_val); | 413 cache_add_bitmap(&(text_info->glyphs[i].hash_key), &hash_val); |
414 | |
415 } | 414 } |
416 } | 415 } |
417 | 416 |
418 for (i = 0; i < text_info->length; ++i) { | 417 for (i = 0; i < text_info->length; ++i) { |
419 glyph_info_t* info = text_info->glyphs + i; | 418 glyph_info_t* info = text_info->glyphs + i; |
1274 * \return 0 on success | 1273 * \return 0 on success |
1275 */ | 1274 */ |
1276 static void get_bitmap_glyph(glyph_info_t* info) | 1275 static void get_bitmap_glyph(glyph_info_t* info) |
1277 { | 1276 { |
1278 bitmap_hash_val_t* val; | 1277 bitmap_hash_val_t* val; |
1279 bitmap_hash_key_t* key = &(info->hash_key); | 1278 bitmap_hash_key_t* key = &info->hash_key; |
1280 | 1279 |
1281 val = cache_find_bitmap(key); | 1280 val = cache_find_bitmap(key); |
1282 /* val = 0; */ | 1281 /* val = 0; */ |
1283 | 1282 |
1284 if (val) { | 1283 if (val) { |