wintab32: Handle negative output context range for y-axe.
This commit is contained in:
parent
bf1f0568d0
commit
b77f0a1672
|
@ -215,6 +215,8 @@ LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd)
|
|||
/* flip the Y axis */
|
||||
if (ptr->context.lcOutExtY > 0)
|
||||
packet->pkY = ptr->context.lcOutExtY - packet->pkY;
|
||||
else if (ptr->context.lcOutExtY < 0)
|
||||
packet->pkY = abs(ptr->context.lcOutExtY + packet->pkY);
|
||||
|
||||
DUMPPACKET(*packet);
|
||||
|
||||
|
|
Loading…
Reference in New Issue