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

Commit eb51ad33 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Set default color mode for all displays"

parents b0d9d26d e72a1c31
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -121,7 +121,8 @@ DisplayDevice::DisplayDevice(
    ANativeWindow* const window = mNativeWindow.get();

#ifdef USE_HWC2
    mActiveColorMode = static_cast<android_color_mode_t>(-1);
    // Set defaultColorMode to SRGB if this device supports wide-color
    mActiveColorMode = (supportWideColor) ? HAL_COLOR_MODE_SRGB : HAL_COLOR_MODE_NATIVE;
    mDisplayHasWideColor = supportWideColor;
#else
    (void) supportWideColor;