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
This commit is contained in:
Dan Stoza
2016-12-19 15:22:47 -08:00
parent 8d1d2714f6
commit 0df10c4e41

View File

@@ -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);
}