Author: titmuss
Date: Wed Nov 26 07:15:38 2008
New Revision: 3442
URL: http://svn.slimdevices.com?rev=3442&root=Jive&view=rev
Log:
Bug: N/A
Description:
Fix a logic error.
Modified:
7.4/trunk/squeezeplay/src/squeezeplay_jive/src/jive_bsp.c
Modified: 7.4/trunk/squeezeplay/src/squeezeplay_jive/src/jive_bsp.c
URL:
http://svn.slimdevices.com/7.4/trunk/squeezeplay/src/squeezeplay_jive/src/jive_bsp.c?rev=3442&root=Jive&r1=3441&r2=3442&view=diff
==============================================================================
--- 7.4/trunk/squeezeplay/src/squeezeplay_jive/src/jive_bsp.c (original)
+++ 7.4/trunk/squeezeplay/src/squeezeplay_jive/src/jive_bsp.c Wed Nov 26
07:15:38 2008
@@ -104,7 +104,9 @@
event.ticks = TIMEVAL_TO_TICKS(ev[0].time);
/* changed direction? */
- if (scroll != 0 && abs(scroll) != abs(last_value)) {
+ if ((scroll < 0 && last_value > 0) ||
+ (scroll > 0 && last_value < 0)
+ ) {
event.u.scroll.rel = scroll;
jive_queue_event(&event);
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins