summaryrefslogtreecommitdiff
path: root/framebuffer/fb_32bpp_plotters.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2009-02-14 14:12:29 +0000
committerVincent Sanders <vince@netsurf-browser.org>2009-02-14 14:12:29 +0000
commit7a867aacc20d8a5677fd485d9b65812733a770f7 (patch)
treec4475db79092be05533744c7afdfa7b9f23d8f49 /framebuffer/fb_32bpp_plotters.c
parent8ce23e69e0c7e30a833fae3039884fd8b8aa2229 (diff)
downloadnetsurf-7a867aacc20d8a5677fd485d9b65812733a770f7.tar.gz
netsurf-7a867aacc20d8a5677fd485d9b65812733a770f7.tar.bz2
Fix character sign issue causing corrupt characters to be plotted
Fixed warnings from making signs explicit svn path=/trunk/netsurf/; revision=6491
Diffstat (limited to 'framebuffer/fb_32bpp_plotters.c')
-rw-r--r--framebuffer/fb_32bpp_plotters.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/framebuffer/fb_32bpp_plotters.c b/framebuffer/fb_32bpp_plotters.c
index c4dc42807..942632825 100644
--- a/framebuffer/fb_32bpp_plotters.c
+++ b/framebuffer/fb_32bpp_plotters.c
@@ -191,16 +191,16 @@ static bool fb_32bpp_text(int x, int y, const struct css_style *style,
uint32_t *pvideo;
uint32_t fgcol;
- char *buffer = NULL;
+ unsigned char *buffer = NULL;
int x0,y0,x1,y1;
int xoff, yoff; /* x and y offset into image */
int height = fb_font->height;
/* aquire thge text in local font encoding */
- utf8_to_font_encoding(fb_font, text, length, &buffer);
+ utf8_to_font_encoding(fb_font, text, length, (char**)&buffer);
if (!buffer)
return true;
- length = strlen(buffer);
+ length = strlen((char *)buffer);
/* y is given to the fonts baseline we need it to the fonts top */