Commit 51e2d152 authored by Halla Rempt's avatar Halla Rempt

Fix + debug for Yiynova tablets.

parent c4be25a8
......@@ -374,15 +374,22 @@ bool translateTabletEvent(const MSG &msg, PACKET *localPacketBuf,
z = UINT(localPacketBuf[i].pkZ);
prsNew = 0.0;
QRect desktopArea = QApplication::desktop()->geometry();
QDesktopWidget *dw = QApplication::desktop();
QRect desktopArea = dw->screenGeometry(qApp->focusWidget());
QPointF hiResGlobal = currentTabletPointer.scaleCoord(ptNew.x, ptNew.y, desktopArea.left(),
desktopArea.width(), desktopArea.top(),
desktopArea.height());
if (KisTabletDebugger::instance()->debugRawTabletValues()) {
qDebug() << "Number of screens" << dw->screenCount() << "Total desktop size" << dw->geometry();
for (int i = 0; i < dw->screenCount(); ++i) {
qDebug() << "\tScreen" << i << dw->screenGeometry(i);
}
qDebug() << "Active screen" << dw->screenNumber(qApp->focusWidget()) << "With geometry" << desktopArea;
qDebug() << "WinTab (RC):"
<< "Dsk:" << desktopArea
<< "Dsk:" << desktopArea
<< "Raw:" << ptNew.x << ptNew.y
<< "Scaled:" << hiResGlobal;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment