Commit b77f0a16 authored by John Klehm's avatar John Klehm Committed by Alexandre Julliard

wintab32: Handle negative output context range for y-axe.

parent bf1f0568
...@@ -215,6 +215,8 @@ LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd) ...@@ -215,6 +215,8 @@ LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd)
/* flip the Y axis */ /* flip the Y axis */
if (ptr->context.lcOutExtY > 0) if (ptr->context.lcOutExtY > 0)
packet->pkY = ptr->context.lcOutExtY - packet->pkY; packet->pkY = ptr->context.lcOutExtY - packet->pkY;
else if (ptr->context.lcOutExtY < 0)
packet->pkY = abs(ptr->context.lcOutExtY + packet->pkY);
DUMPPACKET(*packet); DUMPPACKET(*packet);
......
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