John Klehm : wintab32: Handle negative output context range for y-axe.
Alexandre Julliard
julliard at winehq.org
Thu Oct 2 11:37:29 CDT 2008
Module: wine
Branch: master
Commit: b77f0a16726a962ede71b12128611d4826581448
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b77f0a16726a962ede71b12128611d4826581448
Author: John Klehm <xixsimplicityxix at gmail.com>
Date: Mon Sep 29 17:20:15 2008 -0500
wintab32: Handle negative output context range for y-axe.
---
dlls/wintab32/context.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wintab32/context.c b/dlls/wintab32/context.c
index cf62154..bf46170 100644
--- a/dlls/wintab32/context.c
+++ b/dlls/wintab32/context.c
@@ -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);
More information about the wine-cvs
mailing list