mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-21 21:41:02 +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;
|
||||
else if (rgbmap == "rgb5a3")
|
||||
m_rgbmap = doc::RgbMapAlgorithm::RGB5A3;
|
||||
else
|
||||
m_rgbmap = doc::RgbMapAlgorithm::DEFAULT;
|
||||
else {
|
||||
// Use the configured algorithm by default.
|
||||
m_rgbmap = Preferences::instance().experimental.rgbmapAlgorithm();
|
||||
}
|
||||
|
||||
std::string toGray = params.get("toGray");
|
||||
if (toGray == "luma")
|
||||
|
Loading…
x
Reference in New Issue
Block a user