From eddae6af0663243a2677674d501f9a87d55798f5 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 30 Jun 2011 15:48:07 +0000 Subject: Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends. svn path=/trunk/netsurf/; revision=12543 --- framebuffer/fbtk/text.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framebuffer/fbtk/text.c') diff --git a/framebuffer/fbtk/text.c b/framebuffer/fbtk/text.c index 18b8e9ae5..f50a5ad59 100644 --- a/framebuffer/fbtk/text.c +++ b/framebuffer/fbtk/text.c @@ -29,10 +29,10 @@ #include "utils/log.h" #include "desktop/browser.h" -#include "desktop/plotters.h" #include "framebuffer/gui.h" #include "framebuffer/fbtk.h" +#include "framebuffer/framebuffer.h" #include "framebuffer/image_data.h" #include "widget.h" @@ -109,7 +109,7 @@ fb_redraw_text(fbtk_widget_t *widget, fbtk_callback_info *cbi ) * system for the baseline is to the "higher value * pixel co-ordinate" due to this the + 1 is neccessary. */ - plot.text(bbox.x0 + padding, + fb_plotters.text(bbox.x0 + padding, bbox.y0 + (((fh * 3) + 3)/4) + padding + 1, widget->u.text.text, strlen(widget->u.text.text), @@ -207,7 +207,7 @@ fb_redraw_text_button(fbtk_widget_t *widget, fbtk_callback_info *cbi ) * system for the baseline is to the "higher value * pixel co-ordinate" due to this the + 1 is neccessary. */ - plot.text(bbox.x0 + border, + fb_plotters.text(bbox.x0 + border, bbox.y0 + (((fh * 3) + 3)/4) + border + 1, widget->u.text.text, strlen(widget->u.text.text), -- cgit v1.2.3