use mode structs in Reduce.c

This commit is contained in:
Yay295 2024-04-21 22:40:40 -05:00
parent 00f6ecbfce
commit adf97ece55

View File

@ -1452,7 +1452,7 @@ ImagingReduce(Imaging imIn, int xscale, int yscale, int box[4]) {
ImagingSectionCookie cookie; ImagingSectionCookie cookie;
Imaging imOut = NULL; Imaging imOut = NULL;
if (strcmp(imIn->mode, "P") == 0 || strcmp(imIn->mode, "1") == 0) { if (imIn->mode == IMAGING_MODE_P || imIn->mode == IMAGING_MODE_1) {
return (Imaging)ImagingError_ModeError(); return (Imaging)ImagingError_ModeError();
} }