Marcus Meissner : wintab32: Mark some signed entities as LONG.
Alexandre Julliard
julliard at winehq.org
Mon Feb 18 08:50:36 CST 2008
Module: wine
Branch: master
Commit: e94367cc5ecf466592fee355fe4c2c739dc71cc0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e94367cc5ecf466592fee355fe4c2c739dc71cc0
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sun Feb 17 13:31:59 2008 +0100
wintab32: Mark some signed entities as LONG.
---
dlls/wintab32/context.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/wintab32/context.c b/dlls/wintab32/context.c
index 609ec22..9c4c262 100644
--- a/dlls/wintab32/context.c
+++ b/dlls/wintab32/context.c
@@ -157,8 +157,7 @@ int TABLET_PostTabletMessage(LPOPENCONTEXT newcontext, UINT msg, WPARAM wParam,
return 0;
}
-static inline DWORD ScaleForContext(DWORD In, DWORD InOrg, DWORD InExt, DWORD
- OutOrg, DWORD OutExt)
+static inline DWORD ScaleForContext(DWORD In, LONG InOrg, LONG InExt, LONG OutOrg, LONG OutExt)
{
if (((InExt > 0 )&&(OutExt > 0)) || ((InExt<0) && (OutExt < 0)))
return ((In - InOrg) * abs(OutExt) / abs(InExt)) + OutOrg;
More information about the wine-cvs
mailing list