summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Tasayco Loarte <victorx.tasayco.loarte@intel.com>2016-08-25 21:08:44 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-08-25 21:08:44 +0000
commitc7456da53de97c6858ccb82102f9adb37a17082c (patch)
tree4ff9163de15c363562698e72e0ad1781792c847f
parent0de801ec62682e95d494c0e672a1be97a50e02b6 (diff)
parent71806925d339c79fc61fd1e9c1f88b6f4c5f690a (diff)
downloadhwcomposer-c7456da53de97c6858ccb82102f9adb37a17082c.tar.gz
display: invert touch cursor coordinate
am: 71806925d3 Change-Id: Iaa7bc428b328059c7c1d3203795b23dd39ff22dc
-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;