diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2008-09-24 11:22:52 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2008-09-24 11:22:52 +0000 |
commit | 29d1e44dec29a3c029b47634b5474f49e0e6d43b (patch) | |
tree | 945c62a61f11dc88d43809c9e9f00ca48ab744ae /framebuffer/fb_plotters.c | |
parent | 9b76a47bbe36bd302a188072de935d3dbbbcb614 (diff) | |
download | netsurf-29d1e44dec29a3c029b47634b5474f49e0e6d43b.tar.gz netsurf-29d1e44dec29a3c029b47634b5474f49e0e6d43b.tar.bz2 |
Fix line plotting and rectangle clipping segfault
svn path=/trunk/netsurf/; revision=5430
Diffstat (limited to 'framebuffer/fb_plotters.c')
-rw-r--r-- | framebuffer/fb_plotters.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framebuffer/fb_plotters.c b/framebuffer/fb_plotters.c index 6604eaef2..87a179425 100644 --- a/framebuffer/fb_plotters.c +++ b/framebuffer/fb_plotters.c @@ -61,8 +61,8 @@ bool fb_plotters_clip_rect(const bbox_t *clip, if (*y1 < *y0) SWAP(*y0, *y1); - region1 = REGION(*x0, *y0, clip->x0, clip->x1, clip->y0, clip->y1); - region2 = REGION(*x1, *y1, clip->x0, clip->x1, clip->y0, clip->y1); + region1 = REGION(*x0, *y0, clip->x0, clip->x1 - 1, clip->y0, clip->y1 - 1); + region2 = REGION(*x1, *y1, clip->x0, clip->x1 - 1, clip->y0, clip->y1 - 1); /* area lies entirely outside the clipping rectangle */ if ((region1 | region2) && (region1 & region2)) |