We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57fa73f commit 941406eCopy full SHA for 941406e
src/_image_resample.h
@@ -908,8 +908,8 @@ void resample(
908
909
if (params.interpolation != NEAREST &&
910
params.is_affine &&
911
- abs(params.affine.sx) == 1.0 &&
912
- abs(params.affine.sy) == 1.0 &&
+ fabs(params.affine.sx) == 1.0 &&
+ fabs(params.affine.sy) == 1.0 &&
913
params.affine.shx == 0.0 &&
914
params.affine.shy == 0.0) {
915
params.interpolation = NEAREST;
0 commit comments