From ee6182837b20257df15d679dffd7e06435b6ffea Mon Sep 17 00:00:00 2001 From: ellson Date: Tue, 14 Aug 2007 21:27:37 +0000 Subject: [PATCH] silence some unsigned/signed conversion warnings --- plugin/gd/gvrender_gd.c | 12 ++++++------ plugin/gd/gvrender_gd_vrml.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugin/gd/gvrender_gd.c b/plugin/gd/gvrender_gd.c index dc2ae8db4..f0ce92263 100644 --- a/plugin/gd/gvrender_gd.c +++ b/plugin/gd/gvrender_gd.c @@ -264,7 +264,7 @@ extern gdFontPtr gdFontTiny, gdFontSmall, gdFontMediumBold, gdFontLarge, gdFontG extern gdFontPtr gdFontTiny, gdFontSmall, gdFontMediumBold, gdFontLarge, gdFontGiant; -void gdgen_text(gdImagePtr im, pointf spf, pointf epf, int fontcolor, double fontsize, int fontdpi, double fontangle, char *fontname, unsigned char *str) +void gdgen_text(gdImagePtr im, pointf spf, pointf epf, int fontcolor, double fontsize, int fontdpi, double fontangle, char *fontname, char *str) { gdFTStringExtra strex; point sp, ep; /* start point, end point, in pixels */ @@ -304,15 +304,15 @@ void gdgen_text(gdImagePtr im, pointf spf, pointf epf, int fontcolor, double fon #endif sp.y += 2; if (fontsize <= 8.5) { - gdImageString(im, gdFontTiny, sp.x, sp.y - 9, str, fontcolor); + gdImageString(im, gdFontTiny, sp.x, sp.y - 9, (unsigned char*)str, fontcolor); } else if (fontsize <= 9.5) { - gdImageString(im, gdFontSmall, sp.x, sp.y - 12, str, fontcolor); + gdImageString(im, gdFontSmall, sp.x, sp.y - 12, (unsigned char*)str, fontcolor); } else if (fontsize <= 10.5) { - gdImageString(im, gdFontMediumBold, sp.x, sp.y - 13, str, fontcolor); + gdImageString(im, gdFontMediumBold, sp.x, sp.y - 13, (unsigned char*)str, fontcolor); } else if (fontsize <= 11.5) { - gdImageString(im, gdFontLarge, sp.x, sp.y - 14, str, fontcolor); + gdImageString(im, gdFontLarge, sp.x, sp.y - 14, (unsigned char*)str, fontcolor); } else { - gdImageString(im, gdFontGiant, sp.x, sp.y - 15, str, fontcolor); + gdImageString(im, gdFontGiant, sp.x, sp.y - 15, (unsigned char*)str, fontcolor); } #ifdef HAVE_GD_FREETYPE } diff --git a/plugin/gd/gvrender_gd_vrml.c b/plugin/gd/gvrender_gd_vrml.c index 35c22a1ec..f873a7553 100644 --- a/plugin/gd/gvrender_gd_vrml.c +++ b/plugin/gd/gvrender_gd_vrml.c @@ -338,7 +338,7 @@ static void vrml_end_edge(GVJ_t *job) fprintf(job->output_file, "] }\n"); } -extern void gdgen_text(gdImagePtr im, pointf spf, pointf epf, int fontcolor, double fontsize, int fontdpi, double fontangle, char *fontname, unsigned char *str); +extern void gdgen_text(gdImagePtr im, pointf spf, pointf epf, int fontcolor, double fontsize, int fontdpi, double fontangle, char *fontname, char *str); static void vrml_textpara(GVJ_t *job, pointf p, textpara_t * para) { -- 2.40.0