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

Commit 4077c04b authored by Romain Guy's avatar Romain Guy
Browse files

Use d=0.039 for Display P3 instead of sRGB's 0.04045

Bug: 32984164
Test: ColorSpaceTest
Change-Id: I0db88e3b7342421567ba09be3e279e6d65a21ecc
parent 2a9644ad
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -211,8 +211,8 @@ const ColorSpace ColorSpace::DisplayP3() {
        "Display P3",
        {{float2{0.680f, 0.320f}, {0.265f, 0.690f}, {0.150f, 0.060f}}},
        {0.3127f, 0.3290f},
        std::bind(rcpResponse, _1, 2.4f, 1 / 1.055f, 0.055f / 1.055f, 1 / 12.92f, 0.04045f),
        std::bind(response,    _1, 2.4f, 1 / 1.055f, 0.055f / 1.055f, 1 / 12.92f, 0.04045f)
        std::bind(rcpResponse, _1, 2.4f, 1 / 1.055f, 0.055f / 1.055f, 1 / 12.92f, 0.039f),
        std::bind(response,    _1, 2.4f, 1 / 1.055f, 0.055f / 1.055f, 1 / 12.92f, 0.039f)
    };
}