summaryrefslogtreecommitdiff
path: root/draw/meshdraw.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2011-03-09 22:35:43 +0000
committerTor Andersson <tor@ghostscript.com>2011-03-09 22:35:43 +0000
commit7a6ca333ec50269f98e4395967d1a437cf658194 (patch)
treeb4b26ba0850418f2e973248ef5a756213d5eaaf7 /draw/meshdraw.c
parent5a8124a8203e4e48811d4941f5769b3f6c1c5cc9 (diff)
downloadmupdf-7a6ca333ec50269f98e4395967d1a437cf658194.tar.xz
Draw radial shading extensions in the right order.
Diffstat (limited to 'draw/meshdraw.c')
-rw-r--r--draw/meshdraw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/draw/meshdraw.c b/draw/meshdraw.c
index 049edde0..80b80378 100644
--- a/draw/meshdraw.c
+++ b/draw/meshdraw.c
@@ -453,8 +453,6 @@ fz_paintradial(fz_shade *shade, fz_matrix ctm, fz_pixmap *dest, fz_bbox bbox)
p1.y = shade->mesh[4];
r1 = shade->mesh[5];
- fz_paintannulus(ctm, p0, r0, 0, p1, r1, 255, dest, bbox);
-
if (shade->extend[0])
{
if (r0 < r1)
@@ -469,6 +467,8 @@ fz_paintradial(fz_shade *shade, fz_matrix ctm, fz_pixmap *dest, fz_bbox bbox)
fz_paintannulus(ctm, e, er, 0, p0, r0, 0, dest, bbox);
}
+ fz_paintannulus(ctm, p0, r0, 0, p1, r1, 255, dest, bbox);
+
if (shade->extend[1])
{
if (r0 > r1)