mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-06 12:39:57 +00:00
Quantize a palette for RGB images when they are loaded.
This commit is contained in:
parent
8ecc957fb2
commit
7869642c83
@ -35,6 +35,7 @@
|
||||
#include "modules/gui.h"
|
||||
#include "modules/palettes.h"
|
||||
#include "raster/raster.h"
|
||||
#include "util/quantize.h"
|
||||
#include "widgets/statebar.h"
|
||||
|
||||
using Vaca::Mutex;
|
||||
@ -594,6 +595,10 @@ void fop_operate(FileOp *fop)
|
||||
else
|
||||
fop->sprite->setFilename(fop->filename);
|
||||
|
||||
// Quantize a palette for RGB images
|
||||
if (fop->sprite->getImgType() == IMAGE_RGB)
|
||||
sprite_quantize(fop->sprite);
|
||||
|
||||
fop->sprite->markAsSaved();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user