diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/rastport.c | 12 | ||||
-rw-r--r-- | render/render.c | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/render/rastport.c b/render/rastport.c index 112ab5ea..6d6b3b8a 100644 --- a/render/rastport.c +++ b/render/rastport.c @@ -369,9 +369,9 @@ static void img_4o4(FZ_PSRC, FZ_PDST, FZ_PCTM) sampleargb(src, srcw, srch, u, v, argb); ssa = 255 - argb[0]; dstp[0] = argb[0] + fz_mul255(dstp[0], ssa); - dstp[1] = argb[1] + fz_mul255((short)dstp[1] - argb[1], ssa); - dstp[2] = argb[2] + fz_mul255((short)dstp[2] - argb[2], ssa); - dstp[3] = argb[3] + fz_mul255((short)dstp[3] - argb[3], ssa); + dstp[1] = argb[1] + fz_mul255(dstp[1], ssa); + dstp[2] = argb[2] + fz_mul255(dstp[2], ssa); + dstp[3] = argb[3] + fz_mul255(dstp[3], ssa); dstp += 4; u += fa; v += fb; @@ -396,9 +396,9 @@ static void img_w3i1o4(byte *rgb, FZ_PSRC, FZ_PDST, FZ_PCTM) sa = samplemask(src, srcw, srch, u, v); ssa = 255 - sa; dstp[0] = sa + fz_mul255(dstp[0], ssa); - dstp[1] = rgb[0] + fz_mul255((short)dstp[1] - rgb[0], ssa); - dstp[2] = rgb[1] + fz_mul255((short)dstp[2] - rgb[1], ssa); - dstp[3] = rgb[2] + fz_mul255((short)dstp[3] - rgb[2], ssa); + dstp[1] = rgb[0] + fz_mul255(dstp[1], ssa); + dstp[2] = rgb[1] + fz_mul255(dstp[2], ssa); + dstp[3] = rgb[2] + fz_mul255(dstp[3], ssa); dstp += 4; u += fa; v += fb; diff --git a/render/render.c b/render/render.c index b72f069e..77f04e22 100644 --- a/render/render.c +++ b/render/render.c @@ -1,7 +1,7 @@ #include <fitz.h> -#define noDEBUG(args...) printf(args) -#define DEBUG(args...) +#define DEBUG(args...) printf(args) +#define noDEBUG(args...) #define FNONE 0 #define FOVER 1 |