wintab32: Remove the unused and clearly broken FindOpenContext function.
It's clear that someone left it in by accident; the TABLET_FindOpenContext is its clear successor.
This commit is contained in:
parent
ca89d7e809
commit
6c1d38649a
|
@ -166,21 +166,6 @@ static inline DWORD ScaleForContext(DWORD In, DWORD InOrg, DWORD InExt, DWORD
|
|||
return ((abs(InExt) - (In - InOrg))*abs(OutExt) / abs(InExt)) + OutOrg;
|
||||
}
|
||||
|
||||
LPOPENCONTEXT FindOpenContext(HWND hwnd)
|
||||
{
|
||||
LPOPENCONTEXT ptr;
|
||||
|
||||
EnterCriticalSection(&csTablet);
|
||||
ptr = gOpenContexts;
|
||||
while (ptr)
|
||||
{
|
||||
TRACE("Trying Context %p (%p %p)\n",ptr->handle,hwnd,ptr->hwndOwner);
|
||||
if (ptr->hwndOwner == hwnd) break;
|
||||
}
|
||||
LeaveCriticalSection(&csTablet);
|
||||
return ptr;
|
||||
}
|
||||
|
||||
LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd)
|
||||
{
|
||||
LPOPENCONTEXT ptr=NULL;
|
||||
|
|
|
@ -149,7 +149,6 @@ typedef struct tagOPENCONTEXT
|
|||
int TABLET_PostTabletMessage(LPOPENCONTEXT newcontext, UINT msg, WPARAM wParam,
|
||||
LPARAM lParam, BOOL send_always);
|
||||
LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd);
|
||||
LPOPENCONTEXT FindOpenContext(HWND hwnd);
|
||||
|
||||
/* X11drv functions */
|
||||
extern int (*pLoadTabletInfo)(HWND hwnddefault);
|
||||
|
|
Loading…
Reference in New Issue