Commit e0468b06f56de1582257e89b38de18a8b6eb65b0

Authored by 김태훈
1 parent ddff1e8910
Exists in master and in 2 other branches fhd, fhd-demo

patch for rotating tslib axis

buildroot/buildroot-2016.08.1/package/qt5/qt5base/0009-tslib-rotation.patch
... ... @@ -0,0 +1,24 @@
  1 +diff -Naur a/src/platformsupport/input/tslib/qtslib.cpp b/src/platformsupport/input/tslib/qtslib.cpp
  2 +--- a/src/platformsupport/input/tslib/qtslib.cpp 2017-03-09 13:56:15.106194306 +0900
  3 ++++ b/src/platformsupport/input/tslib/qtslib.cpp 2017-03-09 13:55:49.937693339 +0900
  4 +@@ -121,12 +121,16 @@
  5 + if (dx*dx <= 4 && dy*dy <= 4 && pressed == m_pressed)
  6 + continue;
  7 + }
  8 +- QPoint pos(x, y);
  9 ++
  10 ++ int xn = 900 - y;
  11 ++ int yn = x;
  12 ++
  13 ++ QPoint pos(xn, yn);
  14 +
  15 + QWindowSystemInterface::handleMouseEvent(0, pos, pos, pressed ? Qt::LeftButton : Qt::NoButton);
  16 +
  17 +- m_x = x;
  18 +- m_y = y;
  19 ++ m_x = xn;
  20 ++ m_y = yn;
  21 + m_pressed = pressed;
  22 + }
  23 + }
  24 +
... ...