overlay: Reset the rotation flag

Reset the MDP source rotation flag if there is no 90/270 degree
rotation.

Change-Id: I36ef62e52213149f7ce84677534de969d18972a4
This commit is contained in:
Naomi Luis 2011-04-07 10:03:09 -07:00 committed by Govind Surti
parent 16b703db64
commit de3c0ac14e

View File

@ -1076,6 +1076,8 @@ bool OverlayControlChannel::setParameter(int param, int value, bool fetch) {
if ((mOVInfo.user_data[0] == MDP_ROT_90) ||
(mOVInfo.user_data[0] == MDP_ROT_270))
mOVInfo.flags |= MDP_SOURCE_ROTATED_90;
else
mOVInfo.flags &= ~MDP_SOURCE_ROTATED_90;
if (ioctl(mFD, MSMFB_OVERLAY_SET, &mOVInfo)) {
reportError("setParameter, overlay set failed");