summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)