From 9272abc2956c822f25f88aaae1c20f06c0540559 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Wed, 16 Nov 2011 18:11:20 +0000 Subject: fix the collision detection --- src/transport-widget.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/transport-widget.c b/src/transport-widget.c index c535e00..2d1a7f2 100644 --- a/src/transport-widget.c +++ b/src/transport-widget.c @@ -561,15 +561,15 @@ transport_widget_collision_detection ( gint x, { TransportAction event = TRANSPORT_ACTION_NO_ACTION; - if (x > 67 && x < 112 + if (x > 57 && x < 102 && y > 12 && y < 40){ event = TRANSPORT_ACTION_PREVIOUS; } - else if (x > 111 && x < 153 + else if (x > 101 && x < 143 && y > 5 && y < 47){ event = TRANSPORT_ACTION_PLAY_PAUSE; } - else if (x > 152 && x < 197 + else if (x > 142 && x < 187 && y > 12 && y < 40){ event = TRANSPORT_ACTION_NEXT; } -- cgit v1.2.3