summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Tasayco Loarte <victorx.tasayco.loarte@intel.com>2016-08-23 16:46:27 +0200
committerAlain Vongsouvanh <alainv@google.com>2016-08-24 17:20:03 -0700
commit71806925d339c79fc61fd1e9c1f88b6f4c5f690a (patch)
tree4ff9163de15c363562698e72e0ad1781792c847f
parent2b28f717ce2603988a95ac4bfed2763c23f312f9 (diff)
downloadhwcomposer-71806925d339c79fc61fd1e9c1f88b6f4c5f690a.tar.gz
display: invert touch cursor coordinate
Currently sprite plane and primary plane both rotate 180 to adapte AUO panel. Touch cursor coordinate also should be shifted to the position of cursor lower right corner relative to the end of plane in the unmirrored oritentation. Bug: 31058136 Change-Id: I51b2e23c2155f63694f3724defdd9be389ed914f Tracked-On: https://jira01.devtools.intel.com/browse/AW-1169 Signed-off-by: wenshelx <wenshengx.wang@intel.com>
-rw-r--r--merrifield/ips/tangier/TngCursorPlane.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/merrifield/ips/tangier/TngCursorPlane.cpp b/merrifield/ips/tangier/TngCursorPlane.cpp
index 8ce5af7..c229711 100644
--- a/merrifield/ips/tangier/TngCursorPlane.cpp
+++ b/merrifield/ips/tangier/TngCursorPlane.cpp
@@ -99,6 +99,11 @@ bool TngCursorPlane::setDataBuffer(BufferMapper& mapper)
cursorSize = w;
}
+#if ENABLE_ROTATION_180
+ dstX = mModeInfo.hdisplay - dstX - cursorSize;
+ dstY = mModeInfo.vdisplay - dstY - cursorSize;
+#endif
+
uint32_t cntr = 0;
if (64 <= cursorSize && cursorSize < 128) {
cursorSize = 64;