Make use of the rendering intent enum in the preferences implementation as well.
This commit is contained in:
@@ -1448,16 +1448,16 @@ void Preferences::storePreferences ()
|
|||||||
#if !defined(__APPLE__) // monitor profile not supported on apple
|
#if !defined(__APPLE__) // monitor profile not supported on apple
|
||||||
moptions.rtSettings.monitorProfile = monProfile->get_active_text ();
|
moptions.rtSettings.monitorProfile = monProfile->get_active_text ();
|
||||||
switch (monIntent->get_active_row_number ()) {
|
switch (monIntent->get_active_row_number ()) {
|
||||||
case (0):
|
default:
|
||||||
|
case 0:
|
||||||
moptions.rtSettings.monitorIntent = rtengine::RI_RELATIVE;
|
moptions.rtSettings.monitorIntent = rtengine::RI_RELATIVE;
|
||||||
break;
|
break;
|
||||||
case (2):
|
case 1:
|
||||||
moptions.rtSettings.monitorIntent = rtengine::RI_ABSOLUTE;
|
|
||||||
break;
|
|
||||||
case (1):
|
|
||||||
default:
|
|
||||||
moptions.rtSettings.monitorIntent = rtengine::RI_PERCEPTUAL;
|
moptions.rtSettings.monitorIntent = rtengine::RI_PERCEPTUAL;
|
||||||
break;
|
break;
|
||||||
|
case 2:
|
||||||
|
moptions.rtSettings.monitorIntent = rtengine::RI_ABSOLUTE;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
moptions.rtSettings.autoMonitorProfile = cbAutoMonProfile->get_active ();
|
moptions.rtSettings.autoMonitorProfile = cbAutoMonProfile->get_active ();
|
||||||
@@ -1578,16 +1578,16 @@ void Preferences::fillPreferences ()
|
|||||||
#if !defined(__APPLE__) // monitor profile not supported on apple
|
#if !defined(__APPLE__) // monitor profile not supported on apple
|
||||||
setActiveTextOrIndex (*monProfile, moptions.rtSettings.monitorProfile, 0);
|
setActiveTextOrIndex (*monProfile, moptions.rtSettings.monitorProfile, 0);
|
||||||
switch (moptions.rtSettings.monitorIntent) {
|
switch (moptions.rtSettings.monitorIntent) {
|
||||||
case(0) :
|
default:
|
||||||
|
case rtengine::RI_RELATIVE:
|
||||||
monIntent->set_active (0);
|
monIntent->set_active (0);
|
||||||
break;
|
break;
|
||||||
case(2) :
|
case rtengine::RI_PERCEPTUAL:
|
||||||
monIntent->set_active (2);
|
|
||||||
break;
|
|
||||||
case(1) :
|
|
||||||
default:
|
|
||||||
monIntent->set_active (1);
|
monIntent->set_active (1);
|
||||||
break;
|
break;
|
||||||
|
case rtengine::RI_ABSOLUTE:
|
||||||
|
monIntent->set_active (2);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
cbAutoMonProfile->set_active(moptions.rtSettings.autoMonitorProfile);
|
cbAutoMonProfile->set_active(moptions.rtSettings.autoMonitorProfile);
|
||||||
|
Reference in New Issue
Block a user