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
diff --git a/liboverlay/overlayMdssRot.cpp b/liboverlay/overlayMdssRot.cpp
index dedc396..86df0c2 100644
--- a/liboverlay/overlayMdssRot.cpp
+++ b/liboverlay/overlayMdssRot.cpp
@@ -1,6 +1,6 @@
/*
* 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
* for attribution purposes only.
*
@@ -132,6 +132,8 @@
return false;
}
mRotData.id = mRotInfo.id;
+ //reset flags to avoid stale orientation values
+ mRotInfo.flags = 0;
return true;
}