mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-29 11:26:17 +03:00
use mode structs in Blend.c
This commit is contained in:
parent
58dedbefd6
commit
74b112dd55
|
@ -24,8 +24,8 @@ ImagingBlend(Imaging imIn1, Imaging imIn2, float alpha) {
|
||||||
|
|
||||||
/* Check arguments */
|
/* Check arguments */
|
||||||
if (!imIn1 || !imIn2 || imIn1->type != IMAGING_TYPE_UINT8 || imIn1->palette ||
|
if (!imIn1 || !imIn2 || imIn1->type != IMAGING_TYPE_UINT8 || imIn1->palette ||
|
||||||
strcmp(imIn1->mode, "1") == 0 || imIn2->palette ||
|
imIn1->mode == IMAGING_MODE_1 || imIn2->palette ||
|
||||||
strcmp(imIn2->mode, "1") == 0) {
|
imIn2->mode == IMAGING_MODE_1) {
|
||||||
return ImagingError_ModeError();
|
return ImagingError_ModeError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user