diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-12 15:28:28 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-12 15:28:28 +0100 |
commit | b1e4df928fb59ee295830d5c0fa26330714f88f2 (patch) | |
tree | d4a2b3e4ecf80432609f617754c46b2c49950fa7 /test/coverage.c | |
parent | 968374b6335199cbf02c8c4733537388da2a45f5 (diff) |
test/coverage: Refine comments
Joonas didn't like me putting incorrect labels in my comments. Said they
were misleading and worse than useless. Harsh.
Diffstat (limited to 'test/coverage.c')
-rw-r--r-- | test/coverage.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/test/coverage.c b/test/coverage.c index c2dd3986..47280880 100644 --- a/test/coverage.c +++ b/test/coverage.c @@ -277,13 +277,19 @@ column_triangles (cairo_t *cr, int width, int height) * edges on either side that may co-align with their * neighbours: * - * --- . --- - * 1 / | |\ | - * / 2x | | \ | - * --- .... | 1 / x - * \ | | - * \| | - * . --- + * s --- . --- + * t | |\ | + * e | | \ | + * p --- .... | 2 * step = 1 / WIDTH + * \ | | + * \| | + * . --- + * |---| + * 1 / PRECISION + * + * Each column contains two triangles of width one quantum and + * total height of (x / WIDTH), thus the total area covered by all + * columns in each pixel is .5 * (x / WIDTH). */ cairo_move_to (cr, x + i / (double) PRECISION, y + dy); |