Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Set default display rendering intent to RelativeColorimetric

Dmitry Kazakov0724c254523e
diff --git a/libs/ui/kis_config.cc b/libs/ui/kis_config.cc
index 4354b9d4d7..6b31920841 100644
--- a/libs/ui/kis_config.cc
+++ b/libs/ui/kis_config.cc
@@ -1050,10 +1050,10 @@ void KisConfig::setPasteFormat(qint32 format)
qint32 KisConfig::monitorRenderIntent(bool defaultValue) const
{
- qint32 intent = m_cfg.readEntry("renderIntent", INTENT_PERCEPTUAL);
+ qint32 intent = m_cfg.readEntry("renderIntent", INTENT_RELATIVE_COLORIMETRIC);
if (intent > 3) intent = 3;
if (intent < 0) intent = 0;
- return (defaultValue ? INTENT_PERCEPTUAL : intent);
+ return (defaultValue ? INTENT_RELATIVE_COLORIMETRIC : intent);
}
void KisConfig::setRenderIntent(qint32 renderIntent) const