From 71806925d339c79fc61fd1e9c1f88b6f4c5f690a Mon Sep 17 00:00:00 2001 From: Victor Tasayco Loarte Date: Tue, 23 Aug 2016 16:46:27 +0200 Subject: 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 --- merrifield/ips/tangier/TngCursorPlane.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v1.2.3