]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 10 May 2011 21:38:57 +0000 (21:38 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 10 May 2011 21:38:57 +0000 (21:38 +0000)
magick/resample.c

index c3688c361c0cc4dfd7143d3f8585ec0684d9b260..53935ba97bf8bfbeec84668949812749bdc24572 100644 (file)
@@ -1158,12 +1158,12 @@ MagickExport void ScaleResampleFilter(ResampleFilter *resample_filter,
   F *= resample_filter->support;
 
   /* Orthogonal bounds of the ellipse */
-  resample_filter->Ulimit = sqrt(C*F/(A*C-.25*B*B));
-  resample_filter->Vlimit = sqrt(A*F/(A*C-.25*B*B));
+  resample_filter->Ulimit = sqrt(C*F/(A*C-0.25*B*B));
+  resample_filter->Vlimit = sqrt(A*F/(A*C-0.25*B*B));
 
   /* Horizontally aligned parallelogram fitted to Ellipse */
   resample_filter->Uwidth = sqrt(F/A); /* Half of the parallelogram width */
-  resample_filter->slope = -B/(2*A); /* Reciprocal slope of the parallelogram */
+  resample_filter->slope = -B/(2.0*A); /* Reciprocal slope of the parallelogram */
 
 #if DEBUG_ELLIPSE
   fprintf(stderr, "Ulimit=%lf; Vlimit=%lf; UWidth=%lf; Slope=%lf;\n",