Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd554e36 authored by Alan Viverette's avatar Alan Viverette
Browse files

Don't simulate color space after correction

Change-Id: Ied0918ffa2be5f9382e693f442b142b3e068e735
parent 544b0952
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -148,9 +148,6 @@ void Daltonizer::update() {
    // set to identity, errp, errd, errt ([0] for simulation only)
    mat4 correction(0);

    // control: simulation post-correction (used for debugging):
    // set to identity or lms2lmsp, lms2lmsd, lms2lmst
    mat4 control;
    switch (mType) {
        case protanopia:
        case protanomaly:
@@ -172,11 +169,7 @@ void Daltonizer::update() {
            break;
    }

    if (true) {
        control = simulation;
    }

    mColorTransform = lms2rgb * control *
    mColorTransform = lms2rgb *
        (simulation * rgb2lms + correction * (rgb2lms - simulation * rgb2lms));
}