evilpixie
evilpixie copied to clipboard
fix support for non power-of-2 sized palette
There are a lot of places where power-of-2 size palettes are assumed.
Just to take one example:
- load an image with a non-power-of-2 size palette, eg https://lospec.com/palette-list/twilight-5-32x.png
- click "Edit -> Change Format..."
- pick RGBA or RGB format, and click OK
Expected: image should now be RGBA or RGB
Actual: image is still indexed