mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-17 13:20:45 +00:00
Now the palette is created with the given number of colors.
This commit is contained in:
parent
018aeffa47
commit
399d613a76
@ -465,6 +465,7 @@ SpriteImpl::SpriteImpl(Sprite* sprite, int imgtype, int width, int height, int n
|
||||
case IMAGE_RGB:
|
||||
case IMAGE_INDEXED:
|
||||
get_default_palette()->copyColorsTo(&pal);
|
||||
pal.resize(ncolors);
|
||||
break;
|
||||
|
||||
// For black and white images
|
||||
|
Loading…
x
Reference in New Issue
Block a user