Re: [Linuxwacom-devel] [PATCH 01/14] Fix warning: Remove superflous casts in getScrollDelta
On Fri, May 25, 2012 at 2:49 PM, Jason Gerecke wrote: > ../src/xf86Wacom.c: In function 'wcmEventAutoDevProbe': > ../src/xf86Wacom.c:527:5: warning: return discards 'const' qualifier from > pointer target type [enabled by default] I'm thinking you copied the wrong warning here? In other patches, I do not know 100% that ""->NULL is OK but seems reasonable. For all in series: Reviewed-by: Chris Bagwell > > Signed-off-by: Jason Gerecke > --- > src/wcmCommon.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/src/wcmCommon.c b/src/wcmCommon.c > index 7199105..edbcd68 100644 > --- a/src/wcmCommon.c > +++ b/src/wcmCommon.c > @@ -330,9 +330,9 @@ static int getScrollDelta(int current, int old, int wrap, > int flags) > > if (flags & AXIS_BITWISE) > { > - current = (int)log2((current << 1) | 0x01); > - old = (int)log2((old << 1) | 0x01); > - wrap = (int)log2((wrap << 1) | 0x01); > + current = log2((current << 1) | 0x01); > + old = log2((old << 1) | 0x01); > + wrap = log2((wrap << 1) | 0x01); > } > > delta = current - old; > -- > 1.7.10.2 > > > -- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > ___ > Linuxwacom-devel mailing list > Linuxwacom-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
Re: [Linuxwacom-devel] [PATCH] Re-enable relative wheel scrolling from pad devices
Reviewed-by: Chris Bagwell On Fri, May 25, 2012 at 12:30 PM, Jason Gerecke wrote: > Commit 477a261e does not handle the case where relative wheel events > come from a pad device. The Graphire4 produces such events, with the > result that scrolling with one has been broken ever since. > > Signed-off-by: Jason Gerecke > --- > src/wcmCommon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/wcmCommon.c b/src/wcmCommon.c > index 7199105..09e5ccd 100644 > --- a/src/wcmCommon.c > +++ b/src/wcmCommon.c > @@ -449,7 +449,7 @@ static void sendWheelStripEvents(InputInfoPtr pInfo, > const WacomDeviceState* ds, > > /* emulate events for relative wheel */ > delta = getScrollDelta(ds->relwheel, 0, 0, 0); > - if (delta && IsCursor(priv) && priv->oldProximity == ds->proximity) > + if (delta && (IsCursor(priv) || IsPad(priv)) && priv->oldProximity == > ds->proximity) > { > DBG(10, priv, "Relative wheel scroll delta = %d\n", delta); > fakeButton = getWheelButton(delta, priv->relup, priv->reldn, > -- > 1.7.10.2 > > > -- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > ___ > Linuxwacom-devel mailing list > Linuxwacom-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel