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

Commit 0df10c4e authored by Dan Stoza's avatar Dan Stoza
Browse files

HwcClient: Fix plane alpha

Plane alpha was being sent as a float but read as unsigned, which, when
converted to a float was causing things that were supposed to be
translucent to be opaque.

Bug: 33739111
Bug: 33737738
Test: Scrim behind modal dialogs is translucent and there is no more
      glitch when rotating apps

Change-Id: I6896bdbb9928bd1aa7265b3ef25a7a96d54ee227
parent 8d1d2714
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -934,7 +934,7 @@ bool HwcClient::CommandReader::parseSetLayerPlaneAlpha(uint16_t length)
        return false;
    }

    auto err = mHal.setLayerPlaneAlpha(mDisplay, mLayer, read());
    auto err = mHal.setLayerPlaneAlpha(mDisplay, mLayer, readFloat());
    if (err != Error::NONE) {
        mWriter.setError(getCommandLoc(), err);
    }