Mercurial > mplayer.hg
changeset 31661:7f16631c1de0
Remove unused static function menu_text_get_next_line, fixes the warning:
libmenu/menu.c:733: warning: 'menu_text_get_next_line' defined but not used
author | diego |
---|---|
date | Mon, 12 Jul 2010 21:38:39 +0000 |
parents | 5fd00f0e4d1c |
children | 7303e238c5fa |
files | libmenu/menu.c |
diffstat | 1 files changed, 0 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/libmenu/menu.c Mon Jul 12 20:19:53 2010 +0000 +++ b/libmenu/menu.c Mon Jul 12 21:38:39 2010 +0000 @@ -729,24 +729,6 @@ return l; } -static char* menu_text_get_next_line(char* txt, int max_width) -{ - int i = 0; - render_txt(txt); - while (*txt) { - int c=utf8_get_char((const char**)&txt); - if(c == '\n') { - txt++; - break; - } - i += vo_font->width[c]; - if(i >= max_width) - break; - i += vo_font->charspace; - } - return txt; -} - void menu_draw_box(mp_image_t* mpi,unsigned char grey,unsigned char alpha, int x, int y, int w, int h) { draw_alpha_f draw_alpha = get_draw_alpha(mpi->imgfmt);