summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-12-24 12:46:27 +0000
committerRobin Watts <robin.watts@artifex.com>2011-12-24 12:48:45 +0000
commit0d70079719b89aae1e5342d098389ef04bf313bc (patch)
tree4eeb8c6db071ce24286bb170f3a749abca5ceaa4
parentb6db673089503f40675c310131467e3be567a936 (diff)
downloadmupdf-0d70079719b89aae1e5342d098389ef04bf313bc.tar.xz
Fix (part of) bug 69293 - typos in draw_affine for shape code.
As Zeniko correctly points out in bug 692593, I had incorrectly used hp[n1] when I should be using hp[0] at various points. Hopefully that bug should be solved in it's entirety now with the previous commit.
-rw-r--r--draw/draw_affine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/draw/draw_affine.c b/draw/draw_affine.c
index 64a254ac..61936ad9 100644
--- a/draw/draw_affine.c
+++ b/draw/draw_affine.c
@@ -57,7 +57,7 @@ fz_paint_affine_alpha_N_lerp(byte *dp, byte *sp, int sw, int sh, int u, int v, i
}
dp[n1] = xa + fz_mul255(dp[n1], t);
if (hp)
- hp[0] = xa + fz_mul255(hp[n1], t);
+ hp[0] = xa + fz_mul255(hp[0], t);
}
dp += n;
if (hp)
@@ -123,7 +123,7 @@ fz_paint_affine_alpha_N_near(byte *dp, byte *sp, int sw, int sh, int u, int v, i
dp[k] = fz_mul255(sample[k], alpha) + fz_mul255(dp[k], t);
dp[n1] = a + fz_mul255(dp[n1], t);
if (hp)
- hp[0] = a + fz_mul255(hp[n1], t);
+ hp[0] = a + fz_mul255(hp[0], t);
}
dp += n;
if (hp)
@@ -346,7 +346,7 @@ fz_paint_affine_color_N_near(byte *dp, byte *sp, int sw, int sh, int u, int v, i
dp[k] = FZ_BLEND(color[k], dp[k], masa);
dp[n1] = FZ_BLEND(255, dp[n1], masa);
if (hp)
- hp[n1] = FZ_BLEND(255, hp[n1], masa);
+ hp[0] = FZ_BLEND(255, hp[0], masa);
}
dp += n;
if (hp)