[gs-commits] mupdf/master - 0_7-19-g74d356e - Fix error in smooth scaling that only occured with horizontally flipped colour images. Patch by Robin Watts.

Tor Andersson tor at ghostscript.com
Mon Oct 18 10:21:46 UTC 2010


commit 74d356ef596c1f155eb898de2cac339ff926fefe
Author: Tor Andersson <tor at ghostscript.com>
Date:   Thu Oct 14 11:45:05 2010 +0000

    Fix error in smooth scaling that only occured with horizontally flipped colour images. Patch by Robin Watts.
    
    Ignore-this: 891ad6a305e4754fdbb6075c70c4e7ff
    
    darcs-hash:20101014114505-f546f-4ba9b14cda177c2661de18df46567698a65c049f.gz

 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/draw/imagesmooth.c b/draw/imagesmooth.c
index 5eea3cd..1bdbedf 100644
--- a/draw/imagesmooth.c
+++ b/draw/imagesmooth.c
@@ -602,7 +602,7 @@ scale_row_to_temp2(int *dst, unsigned char *src, fz_weights *weights)
 	assert(weights->n == 2);
 	if (weights->flip)
 	{
-		dst += weights->count;
+		dst += 2*weights->count;
 		for (i=weights->count; i > 0; i--)
 		{
 			int c1 = 0;
@@ -649,7 +649,7 @@ scale_row_to_temp4(int *dst, unsigned char *src, fz_weights *weights)
 	assert(weights->n == 4);
 	if (weights->flip)
 	{
-		dst += weights->count;
+		dst += 4*weights->count;
 #ifdef ARCH_ARM
 		asm volatile(
 		"1:"

--
git/hooks/post-receive


More information about the gs-commits mailing list