0009-tslib-rotation.patch
730 Bytes
diff -Naur a/src/platformsupport/input/tslib/qtslib.cpp b/src/platformsupport/input/tslib/qtslib.cpp
--- a/src/platformsupport/input/tslib/qtslib.cpp 2017-03-09 13:56:15.106194306 +0900
+++ b/src/platformsupport/input/tslib/qtslib.cpp 2017-03-09 13:55:49.937693339 +0900
@@ -121,12 +121,16 @@
if (dx*dx <= 4 && dy*dy <= 4 && pressed == m_pressed)
continue;
}
- QPoint pos(x, y);
+
+ int xn = 900 - y;
+ int yn = x;
+
+ QPoint pos(xn, yn);
QWindowSystemInterface::handleMouseEvent(0, pos, pos, pressed ? Qt::LeftButton : Qt::NoButton);
- m_x = x;
- m_y = y;
+ m_x = xn;
+ m_y = yn;
m_pressed = pressed;
}
}