Commit e94367cc authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

wintab32: Mark some signed entities as LONG.

parent 494dd5f1
...@@ -157,8 +157,7 @@ int TABLET_PostTabletMessage(LPOPENCONTEXT newcontext, UINT msg, WPARAM wParam, ...@@ -157,8 +157,7 @@ int TABLET_PostTabletMessage(LPOPENCONTEXT newcontext, UINT msg, WPARAM wParam,
return 0; return 0;
} }
static inline DWORD ScaleForContext(DWORD In, DWORD InOrg, DWORD InExt, DWORD static inline DWORD ScaleForContext(DWORD In, LONG InOrg, LONG InExt, LONG OutOrg, LONG OutExt)
OutOrg, DWORD OutExt)
{ {
if (((InExt > 0 )&&(OutExt > 0)) || ((InExt<0) && (OutExt < 0))) if (((InExt > 0 )&&(OutExt > 0)) || ((InExt<0) && (OutExt < 0)))
return ((In - InOrg) * abs(OutExt) / abs(InExt)) + OutOrg; return ((In - InOrg) * abs(OutExt) / abs(InExt)) + OutOrg;
......
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