mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user