Skip to content

Conversation

@radarhere
Copy link
Member

} else if (strcmp(mode, "RGBA") == 0) {
convert = alpha ? pa2rgba : p2rgba;
} else if (strcmp(mode, "RGBX") == 0) {
convert = alpha ? pa2rgba : p2rgba;

Collapse these two conditions into one.

@hugovk hugovk merged commit 7b3f280 into python-pillow:main Feb 14, 2022
@radarhere radarhere deleted the simplified branch February 14, 2022 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants