diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-07-31 15:18:25 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-07-31 15:18:25 +0100 |
commit | 4125a8afdfcbc18fb5e0e60b49d6d5cdd44d008c (patch) | |
tree | 69cba1086c33a279f41c2932d1321b047f02619b /framebuffer/fbtk | |
parent | 45b9d9667885a9a15c228f508a705c97948f4eea (diff) | |
download | netsurf-4125a8afdfcbc18fb5e0e60b49d6d5cdd44d008c.tar.gz netsurf-4125a8afdfcbc18fb5e0e60b49d6d5cdd44d008c.tar.bz2 |
Remove strlen from redraw functions.
Diffstat (limited to 'framebuffer/fbtk')
-rw-r--r-- | framebuffer/fbtk/text.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framebuffer/fbtk/text.c b/framebuffer/fbtk/text.c index f262546e2..505515c7e 100644 --- a/framebuffer/fbtk/text.c +++ b/framebuffer/fbtk/text.c @@ -119,7 +119,7 @@ fb_redraw_text(fbtk_widget_t *widget, fbtk_callback_info *cbi ) fb_plotters.text(bbox.x0 + padding, bbox.y0 + (((fh * 3) + 3)/4) + padding + 1, widget->u.text.text, - strlen(widget->u.text.text), + widget->u.text.len, &font_style); } @@ -212,7 +212,7 @@ fb_redraw_text_button(fbtk_widget_t *widget, fbtk_callback_info *cbi ) fb_plotters.text(bbox.x0 + border, bbox.y0 + (((fh * 3) + 3)/4) + border + 1, widget->u.text.text, - strlen(widget->u.text.text), + widget->u.text.len, &font_style); } |