Ove Kaaven ovehk-at-ping.uio.no |Wine Mailing Lists| wrote:
On 22 Nov 2002, Mike Hearn wrote:
Sorry to kind of spam, it was much easier to fix it than I thought it would be. Hacking wine isn't so hard after all......
input.c line 970 should be:
PostMessageA(TrackingList[i].tme.hwndTrack, WM_MOUSEHOVER, get_key_state() , (pos.y << 8) + (pos.x));
More to the point, the windows headers say that for WM_MOUSEHOVER,the low 16bits contain X the high 16bits contain Y. As this stands, you have low 8 bits for X, and 24 high bits for Y.
That doesn't make much sense, is the X and Y coordinates really always less than 256? Brings back memories of the the CGA days...
Perhaps you meant (pos.y << 16). But if so, you should probably use the MAKELONG or MAKELPARAM macro here.
Sounds about right (To a windows progammer)