Mercurial > mplayer.hg
changeset 24940:f01f7cc2b694
Warning fixes:
menu.c:303: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type
menu.c:370: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type
menu.c:463: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type
menu.c:537: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type
menu.c:565: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type
menu.c:577: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type
menu.c:597: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type
menu.c:612: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type
author | ulion |
---|---|
date | Mon, 05 Nov 2007 02:45:59 +0000 |
parents | 6a2d9f2a19af |
children | fc0f3ac875f1 |
files | libmenu/menu.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/libmenu/menu.c Sun Nov 04 23:39:05 2007 +0000 +++ b/libmenu/menu.c Mon Nov 05 02:45:59 2007 +0000 @@ -300,7 +300,7 @@ static void render_txt(char *txt) { while (*txt) { - int c = utf8_get_char(&txt); + int c = utf8_get_char((const char**)&txt); render_one_glyph(vo_font, c); } } @@ -367,7 +367,7 @@ render_txt(txt); while (*txt) { - int c=utf8_get_char(&txt); + int c=utf8_get_char((const char**)&txt); if ((font=vo_font->font[c])>=0 && (x + vo_font->width[c] <= mpi->w) && (y + vo_font->pic_a[font]->h <= mpi->h)) draw_alpha(vo_font->width[c], vo_font->pic_a[font]->h, vo_font->pic_b[font]->bmp+vo_font->start[c], @@ -460,7 +460,7 @@ // Jump some the beginnig text if needed while(sy < ymin && *txt) { - int c=utf8_get_char(&txt); + int c=utf8_get_char((const char**)&txt); if(c == '\n' || (warp && ll + vo_font->width[c] > w)) { ll = 0; sy += vo_font->height + vspace; @@ -534,7 +534,7 @@ } while(sx < xmax && txt != line_end) { - int c=utf8_get_char(&txt); + int c=utf8_get_char((const char**)&txt); font = vo_font->font[c]; if(font >= 0) { int cs = (vo_font->pic_a[font]->h - vo_font->height) / 2; @@ -562,7 +562,7 @@ int l = 0; render_txt(txt); while (*txt) { - int c=utf8_get_char(&txt); + int c=utf8_get_char((const char**)&txt); l += vo_font->width[c]+vo_font->charspace; } return l - vo_font->charspace; @@ -574,7 +574,7 @@ render_txt(txt); while (*txt) { - int c=utf8_get_char(&txt); + int c=utf8_get_char((const char**)&txt); if(c == '\n' || (warp && i + vo_font->width[c] >= max_width)) { if(*txt) l++; @@ -594,7 +594,7 @@ int l = 1, i = 0; render_txt(txt); while (*txt) { - int c=utf8_get_char(&txt); + int c=utf8_get_char((const char**)&txt); if(c == '\n' || i + vo_font->width[c] > max_width) { l++; i = 0; @@ -609,7 +609,7 @@ int i = 0; render_txt(txt); while (*txt) { - int c=utf8_get_char(&txt); + int c=utf8_get_char((const char**)&txt); if(c == '\n') { txt++; break;