mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
wintab32: Mark some signed entities as LONG.
This commit is contained in:
parent
494dd5f1fa
commit
e94367cc5e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user