summaryrefslogtreecommitdiff
path: root/framebuffer
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-02-14 22:05:39 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-02-14 22:05:39 +0000
commit94e7b44ebc1710eed0f870428ddb5bfcd85858fa (patch)
tree2d75845c082051bac12cd41cf2d5139e019c16bf /framebuffer
parent3ce0613193ca945566ec9ea056d6a67eae7d199c (diff)
downloadnetsurf-94e7b44ebc1710eed0f870428ddb5bfcd85858fa.tar.gz
netsurf-94e7b44ebc1710eed0f870428ddb5bfcd85858fa.tar.bz2
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
Diffstat (limited to 'framebuffer')
-rw-r--r--framebuffer/framebuffer.c14
1 files changed, 7 insertions, 7 deletions
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 = {