summaryrefslogtreecommitdiff
path: root/draw
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2011-01-06 19:07:42 +0000
committerTor Andersson <tor@ghostscript.com>2011-01-06 19:07:42 +0000
commit26659e68b3bab54cca3f516f97d59abf6bcc16a8 (patch)
tree40f2c5bfcf373857e868f4dbb786f4cb5490445f /draw
parentb3e2def0908273fe574a7af83531b9a4f19d6ad9 (diff)
downloadmupdf-26659e68b3bab54cca3f516f97d59abf6bcc16a8.tar.xz
Fix typos in fz_paintlinear.
Diffstat (limited to 'draw')
-rw-r--r--draw/meshdraw.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/draw/meshdraw.c b/draw/meshdraw.c
index c631f64e..049edde0 100644
--- a/draw/meshdraw.c
+++ b/draw/meshdraw.c
@@ -384,18 +384,18 @@ fz_paintlinear(fz_shade *shade, fz_matrix ctm, fz_pixmap *dest, fz_bbox bbox)
e1.x = v2.x - (p1.x - p0.x) * HUGENUM;
e1.y = v2.y - (p1.y - p0.y) * HUGENUM;
- fz_paintquad(dest, e0, v0, v2, e1, 0, 0, 0, 0, 3, bbox);
+ fz_paintquad(dest, e0, e1, v0, v2, 0, 0, 0, 0, 3, bbox);
}
if (shade->extend[1])
{
- e0.x = v1.x - (p1.x - p0.x) * HUGENUM;
- e0.y = v1.y - (p1.y - p0.y) * HUGENUM;
+ e0.x = v1.x + (p1.x - p0.x) * HUGENUM;
+ e0.y = v1.y + (p1.y - p0.y) * HUGENUM;
- e1.x = v3.x - (p1.x - p0.x) * HUGENUM;
- e1.y = v3.y - (p1.y - p0.y) * HUGENUM;
+ e1.x = v3.x + (p1.x - p0.x) * HUGENUM;
+ e1.y = v3.y + (p1.y - p0.y) * HUGENUM;
- fz_paintquad(dest, e0, v1, v3, e1, 255, 255, 255, 255, 3, bbox);
+ fz_paintquad(dest, e0, e1, v1, v3, 255, 255, 255, 255, 3, bbox);
}
}