summaryrefslogtreecommitdiff
path: root/framebuffer/fb_32bpp_plotters.c
diff options
context:
space:
mode:
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 */