From 94e7b44ebc1710eed0f870428ddb5bfcd85858fa Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 14 Feb 2011 22:05:39 +0000 Subject: Pass clip rect to clip plotters as struct. Simplify clip rect handling in debug window code. Pass clip rect to select menu as struct. svn path=/trunk/netsurf/; revision=11683 --- framebuffer/framebuffer.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'framebuffer') diff --git a/framebuffer/framebuffer.c b/framebuffer/framebuffer.c index bed356863..535f63c85 100644 --- a/framebuffer/framebuffer.c +++ b/framebuffer/framebuffer.c @@ -331,15 +331,15 @@ framebuffer_plot_path(const float *p, } static bool -framebuffer_plot_clip(int x0, int y0, int x1, int y1) +framebuffer_plot_clip(const struct rect *clip) { - nsfb_bbox_t clip; - clip.x0 = x0; - clip.y0 = y0; - clip.x1 = x1; - clip.y1 = y1; + nsfb_bbox_t nsfb_clip; + nsfb_clip.x0 = clip->x0; + nsfb_clip.y0 = clip->y0; + nsfb_clip.x1 = clip->x1; + nsfb_clip.y1 = clip->y1; - return nsfb_plot_set_clip(nsfb, &clip); + return nsfb_plot_set_clip(nsfb, &nsfb_clip); } struct plotter_table plot = { -- cgit v1.2.3