overlay: mdssRot: Fix stale rotation flag values.
When moving from a non-zero to 0 orientation rot flags are not cleared. This change resets the flag to 0 after every commit. Change-Id: I2fb9759921c36620c53bf2ac92d9473a42919d8c
This commit is contained in:
committed by
Sushil Chauhan
parent
61f5b302f2
commit
08c65b3d25
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2008 The Android Open Source Project
|
* Copyright (C) 2008 The Android Open Source Project
|
||||||
* Copyright (c) 2010-2012, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
|
||||||
* Not a Contribution, Apache license notifications and license are retained
|
* Not a Contribution, Apache license notifications and license are retained
|
||||||
* for attribution purposes only.
|
* for attribution purposes only.
|
||||||
*
|
*
|
||||||
@@ -132,6 +132,8 @@ bool MdssRot::commit() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
mRotData.id = mRotInfo.id;
|
mRotData.id = mRotInfo.id;
|
||||||
|
//reset flags to avoid stale orientation values
|
||||||
|
mRotInfo.flags = 0;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user