Commit d58429d0 authored by Jeremy White's avatar Jeremy White Committed by Alexandre Julliard

wintab32: Compute our physical device characteristics based on the first tablet…

wintab32: Compute our physical device characteristics based on the first tablet device that looks like a stylus. Otherwise, we may be computing based on a mouse or cursor, and then come to incorrect values for our tilt and pressure settings.
parent 5132ab46
......@@ -528,7 +528,13 @@ void X11DRV_LoadTabletInfo(HWND hwnddefault)
if (TRACE_ON(wintab32))
trace_axes(Val);
if (!axis_read_complete)
/* FIXME: This is imperfect; we compute our devices capabilities based upon the
** first pen type device we find. However, a more correct implementation
** would require acquiring a wide variety of tablets and running through
** the various inputs to see what the values are. Odds are that a
** more 'correct' algorithm would condense to this one anyway.
*/
if (!axis_read_complete && Val->num_axes >= 5 && cursor->TYPE == CSR_TYPE_PEN)
{
Axis = (XAxisInfoPtr) ((char *) Val + sizeof
(XValuatorInfo));
......
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