Commits

Remi Collet committed 5b42b11

Fix gdImageSetInterpolationMethod with GD_DEFAULT

As we have "im->interpolation_id = id;" after the switch

Comments (0)

Files changed (1)

src/gd_interpolation.c

 
 	switch (id) {
 		case GD_DEFAULT:
-			im->interpolation_id = GD_BILINEAR_FIXED;
-			im->interpolation = NULL;
-			break;
-
+			id = GD_BILINEAR_FIXED;
 		/* Optimized versions */
 		case GD_BILINEAR_FIXED:
 		case GD_BICUBIC_FIXED: