summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Tasayco Loarte <victorx.tasayco.loarte@intel.com>2016-08-25 23:11:09 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-08-25 23:11:09 +0000
commitc0898b42da269503778fa5ef48d424659e539355 (patch)
treed9cc9de02ce64a726085e2b0cd6486d21cc6d8cd
parentc80519c895082ac8b190e1821008976861b8434e (diff)
parentcc73821479569ab89b7fd215b941bb8fa2901bc1 (diff)
downloadhwcomposer-c0898b42da269503778fa5ef48d424659e539355.tar.gz
display: invert touch cursor coordinate am: 71806925d3 am: c7456da53d am: 780caf6cb8 am: 2816fafd20
am: cc73821479 Change-Id: I344c0f1158a9a828a675537da8b5f4de5ff806b8
-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;