mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-06 06:30:53 +03:00
use mode structs in Effects.c
This commit is contained in:
parent
2beb5fa67c
commit
bc1f506d5a
|
@ -36,7 +36,7 @@ ImagingEffectMandelbrot(int xsize, int ysize, double extent[4], int quality) {
|
|||
return (Imaging)ImagingError_ValueError(NULL);
|
||||
}
|
||||
|
||||
im = ImagingNewDirty("L", xsize, ysize);
|
||||
im = ImagingNewDirty(IMAGING_MODE_L, xsize, ysize);
|
||||
if (!im) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ ImagingEffectNoise(int xsize, int ysize, float sigma) {
|
|||
int nextok;
|
||||
double this, next;
|
||||
|
||||
imOut = ImagingNewDirty("L", xsize, ysize);
|
||||
imOut = ImagingNewDirty(IMAGING_MODE_L, xsize, ysize);
|
||||
if (!imOut) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user