From aa3da6a25800089b1472075f6c4f5b1e8883bc94 Mon Sep 17 00:00:00 2001 From: Peiyong Lin Date: Wed, 12 Dec 2018 02:48:43 -0800 Subject: [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 --- libs/gui/ISurfaceComposer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/gui/ISurfaceComposer.cpp') diff --git a/libs/gui/ISurfaceComposer.cpp b/libs/gui/ISurfaceComposer.cpp index f1fefcc14b..bd943c120e 100644 --- a/libs/gui/ISurfaceComposer.cpp +++ b/libs/gui/ISurfaceComposer.cpp @@ -1033,7 +1033,7 @@ status_t BnSurfaceComposer::onTransact( reply->writeInt32(static_cast(defaultDataspace)); reply->writeInt32(static_cast(defaultPixelFormat)); reply->writeInt32(static_cast(wideColorGamutDataspace)); - reply->writeInt32(static_cast(wideColorGamutDataspace)); + reply->writeInt32(static_cast(wideColorGamutPixelFormat)); } return NO_ERROR; } -- cgit v1.2.3-59-g8ed1b