-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set C palette to be empty by default #7289
Conversation
This seems inefficient. |
Ok, I've pushed a new commit to set the palette to be empty by default. This is now a C sequel to 4d36fee |
src/libImaging/Palette.c
Outdated
@@ -40,10 +40,8 @@ ImagingPaletteNew(const char *mode) { | |||
palette->mode[IMAGING_MODE_LENGTH - 1] = 0; | |||
|
|||
/* Initialize to ramp */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is now outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I've pushed a commit to remove it.
Resolves #7288
The image in the issue has indexes that occur outside of the palette. This PR ensures that they are black.