mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Use configured algorithm to convert RGB -> Indexed by default
This commit is contained in:
parent
19d7566249
commit
8a22fe220c
@ -548,8 +548,10 @@ void ChangePixelFormatCommand::onLoadParams(const Params& params)
|
|||||||
m_rgbmap = doc::RgbMapAlgorithm::OCTREE;
|
m_rgbmap = doc::RgbMapAlgorithm::OCTREE;
|
||||||
else if (rgbmap == "rgb5a3")
|
else if (rgbmap == "rgb5a3")
|
||||||
m_rgbmap = doc::RgbMapAlgorithm::RGB5A3;
|
m_rgbmap = doc::RgbMapAlgorithm::RGB5A3;
|
||||||
else
|
else {
|
||||||
m_rgbmap = doc::RgbMapAlgorithm::DEFAULT;
|
// Use the configured algorithm by default.
|
||||||
|
m_rgbmap = Preferences::instance().experimental.rgbmapAlgorithm();
|
||||||
|
}
|
||||||
|
|
||||||
std::string toGray = params.get("toGray");
|
std::string toGray = params.get("toGray");
|
||||||
if (toGray == "luma")
|
if (toGray == "luma")
|
||||||
|
Loading…
Reference in New Issue
Block a user