summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-03-02 13:41:54 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-03-02 13:41:54 +0000
commitbc875e092e5126ed7ecac8d573cc74dd3832be34 (patch)
treee97691d00b67122883baf757c06df1a725812b14
parent656c0a0dcb98cc5d6dce51de5ef04b6d20d0e6e1 (diff)
downloadnetsurf-bc875e092e5126ed7ecac8d573cc74dd3832be34.tar.gz
netsurf-bc875e092e5126ed7ecac8d573cc74dd3832be34.tar.bz2
Fix comments.
svn path=/trunk/netsurf/; revision=6665
-rw-r--r--framebuffer/fb_plotters.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/framebuffer/fb_plotters.c b/framebuffer/fb_plotters.c
index b6e16f7b2..2428dcc6a 100644
--- a/framebuffer/fb_plotters.c
+++ b/framebuffer/fb_plotters.c
@@ -287,8 +287,10 @@ static bool fb_plotters_find_span(const int *p, int n, int x, int y,
}
if (*x0 == INT_MAX)
+ /* no span found */
return false;
+ /* span found */
if (*x1 == INT_MAX) {
*x1 = *x0;
*x0 = x;
@@ -312,12 +314,12 @@ static bool fb_plotters_find_span(const int *p, int n, int x, int y,
bool fb_plotters_polygon(const int *p, unsigned int n, colour c,
linefn_t linefn)
{
- int poly_x0, poly_y0; /* Clip rect top left corner */
- int poly_x1, poly_y1; /* Clip rect bottom right corner */
+ int poly_x0, poly_y0; /* Bounding box top left corner */
+ int poly_x1, poly_y1; /* Bounding box bottom right corner */
int i, j; /* indexes */
- int x0, x1;
+ int x0, x1; /* filled span extents */
int y; /* current y coordinate */
- int y_max;
+ int y_max; /* bottom of plot area */
/* find no. of vertex values */
int v = n * 2;