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

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

[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
parent 62842f7d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1033,7 +1033,7 @@ status_t BnSurfaceComposer::onTransact(
                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;
        }