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

This commit is contained in:
John Klehm 2008-09-29 17:20:15 -05:00 committed by Alexandre Julliard
parent bf1f0568d0
commit b77f0a1672
1 changed files with 2 additions and 0 deletions

View File

@ -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);