mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 03:32:48 +00:00
Don't convert colors if color management is disabled (#1576)
This commit is contained in:
parent
ccae016878
commit
6ca0ecf193
@ -54,16 +54,20 @@ gfx::ColorSpacePtr get_working_rgb_space_from_preferences()
|
|||||||
|
|
||||||
ConvertCS::ConvertCS()
|
ConvertCS::ConvertCS()
|
||||||
{
|
{
|
||||||
auto srcCS = get_current_color_space();
|
if (Preferences::instance().color.manage()) {
|
||||||
auto dstCS = get_screen_color_space();
|
auto srcCS = get_current_color_space();
|
||||||
if (srcCS && dstCS)
|
auto dstCS = get_screen_color_space();
|
||||||
m_conversion = os::instance()->convertBetweenColorSpace(srcCS, dstCS);
|
if (srcCS && dstCS)
|
||||||
|
m_conversion = os::instance()->convertBetweenColorSpace(srcCS, dstCS);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ConvertCS::ConvertCS(const os::ColorSpacePtr& srcCS,
|
ConvertCS::ConvertCS(const os::ColorSpacePtr& srcCS,
|
||||||
const os::ColorSpacePtr& dstCS)
|
const os::ColorSpacePtr& dstCS)
|
||||||
{
|
{
|
||||||
m_conversion = os::instance()->convertBetweenColorSpace(srcCS, dstCS);
|
if (Preferences::instance().color.manage()) {
|
||||||
|
m_conversion = os::instance()->convertBetweenColorSpace(srcCS, dstCS);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ConvertCS::ConvertCS(ConvertCS&& that)
|
ConvertCS::ConvertCS(ConvertCS&& that)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user