[ISurfaceComposer] Fix wrong returned value.
Previously we returned the value of data space as the value of pixel format by
accident, this patch fixes it.
BUG: 111436479
Test: Build, flash, boot and verify with demo app.
Change-Id: If03a322210e666cf57aba3a0a4171137440dbc15
diff --git a/libs/gui/ISurfaceComposer.cpp b/libs/gui/ISurfaceComposer.cpp
index f1fefcc..bd943c1 100644
--- a/libs/gui/ISurfaceComposer.cpp
+++ b/libs/gui/ISurfaceComposer.cpp
@@ -1033,7 +1033,7 @@
reply->writeInt32(static_cast<int32_t>(defaultDataspace));
reply->writeInt32(static_cast<int32_t>(defaultPixelFormat));
reply->writeInt32(static_cast<int32_t>(wideColorGamutDataspace));
- reply->writeInt32(static_cast<int32_t>(wideColorGamutDataspace));
+ reply->writeInt32(static_cast<int32_t>(wideColorGamutPixelFormat));
}
return NO_ERROR;
}