summaryrefslogtreecommitdiff
path: root/libhwc2.1/libdevice/ExynosDisplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libhwc2.1/libdevice/ExynosDisplay.cpp')
-rw-r--r--libhwc2.1/libdevice/ExynosDisplay.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/libhwc2.1/libdevice/ExynosDisplay.cpp b/libhwc2.1/libdevice/ExynosDisplay.cpp
index c47a231..d8a605e 100644
--- a/libhwc2.1/libdevice/ExynosDisplay.cpp
+++ b/libhwc2.1/libdevice/ExynosDisplay.cpp
@@ -2821,9 +2821,12 @@ int32_t ExynosDisplay::setColorTransform(
ALOGI("%s:: %d, %d", __func__, mColorTransformHint, hint);
if (mColorTransformHint != hint)
setGeometryChanged(GEOMETRY_DISPLAY_COLOR_TRANSFORM_CHANGED);
- mColorTransformHint = (android_color_transform_t)hint;
+ mColorTransformHint = hint;
#ifdef HWC_SUPPORT_COLOR_TRANSFORM
- return mDisplayInterface->setColorTransform(matrix, hint);
+ int ret = mDisplayInterface->setColorTransform(matrix, hint);
+ if (ret < 0)
+ mColorTransformHint = HAL_COLOR_TRANSFORM_ERROR;
+ return ret;
#else
return HWC2_ERROR_NONE;
#endif