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

Commit e9133d5a authored by Peiyong Lin's avatar Peiyong Lin
Browse files

Correctly refer to the id of ColorSpace.Named.DISPLAY_P3.

BUG: 131312264
Test: Boot, verified no color shift.
Change-Id: I3eb114076a3ba11d36ac6b31580d00b672e0fe85
parent f400227e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -136,8 +136,8 @@ public:
    // ColorSpace.Named.SRGB.ordinal() = 0;
    static constexpr jint SRGB = 0;

    // ColorSpace.Named.DISPLAY_P3.ordinal() = 6;
    static constexpr jint DISPLAY_P3 = 6;
    // ColorSpace.Named.DISPLAY_P3.ordinal() = 7;
    static constexpr jint DISPLAY_P3 = 7;
};

constexpr jint fromDataspaceToNamedColorSpaceValue(const ui::Dataspace dataspace) {