[MPlayer-cvslog] r31727 - trunk/libmenu/menu.c

diego subversion at mplayerhq.hu
Mon Jul 12 23:38:39 CEST 2010


Author: diego
Date: Mon Jul 12 23:38:39 2010
New Revision: 31727

Log:
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

Modified:
   trunk/libmenu/menu.c

Modified: trunk/libmenu/menu.c
==============================================================================
--- trunk/libmenu/menu.c	Mon Jul 12 22:19:53 2010	(r31726)
+++ trunk/libmenu/menu.c	Mon Jul 12 23:38:39 2010	(r31727)
@@ -729,24 +729,6 @@ int menu_text_num_lines(char* txt, int m
   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);


More information about the MPlayer-cvslog mailing list