Re: [wintab32 1/7] Store and use the physical device id to match device to cursor.
On Dec 23, 2007 11:55 AM, Jeremy White <jwhite(a)winehq.org> wrote:
...snip.. +static int cursor_from_device(DWORD deviceid, LPWTI_CURSORS_INFO *cursorp) +{ + int i; + for (i = 0; i < gNumCursors; i++) + if (gSysCursor[i].PHYSID == deviceid) + { + *cursorp = &gSysCursor[i]; + return i; + } + + ERR("Could not map device id %d to a cursor\n", (int) deviceid); + return -1; }
...snip..
Perhaps a silly and/or wrong observation but, is this in an effort to support multiple cursors?
Perhaps a silly and/or wrong observation but, is this in an effort to support multiple cursors?
No, not at all. It's fixing a pretty awful bug; the old code relied on the physical device id exactly lining up with the cursor number. Cheers, Jeremy
participants (2)
-
Jeremy White -
Zachary Goldberg