From 3d04ed7ddc7a93c09476e84cc64412687bf5261a Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 18 Aug 2013 17:51:01 +0000 Subject: [PATCH] --- MagickCore/fourier.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MagickCore/fourier.c b/MagickCore/fourier.c index e908cca2e..c86be37fd 100644 --- a/MagickCore/fourier.c +++ b/MagickCore/fourier.c @@ -201,11 +201,11 @@ static MagickBooleanType ForwardQuadrantSwap(const size_t width, return(MagickFalse); for (y=0L; y < (ssize_t) height; y++) for (x=0L; x < (ssize_t) (width/2L-1L); x++) - forward_pixels[width*y+x+width/2L]=source_pixels[center*y+x]; + forward_pixels[y*width+x+width/2L]=source_pixels[y*center+x]; for (y=1; y < (ssize_t) height; y++) for (x=0L; x < (ssize_t) (width/2L-1L); x++) forward_pixels[width*(height-y)+width/2L-x-1L]= - source_pixels[center*y+x+1L]; + source_pixels[y*center+x+1L]; for (x=0L; x < (ssize_t) (width/2L); x++) forward_pixels[-x+width/2L-1L]=forward_pixels[x+width/2L+1L]; return(MagickTrue); @@ -813,7 +813,7 @@ static MagickBooleanType InverseQuadrantSwap(const size_t width, for (x=0L; x < (ssize_t) (width/2L+1L); x++) destination[center*(height-y)-x+width/2L]=source[y*width+x]; for (y=0L; y < (ssize_t) height; y++) - destination[center*y]=source[y*width+width/2L]; + destination[y*center]=source[y*width+width/2L]; for (x=0L; x < center; x++) destination[x]=source[center-x-1L]; return(RollFourier(center,height,0L,(ssize_t) height/-2L,destination)); -- 2.40.0