Add a action helper for touchscreen targets to only receive the touchpress coordinate...
commit024f974e5e0ab3384902b70b7285df601de6f4fd
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Sun, 11 Oct 2009 20:11:48 +0000 (11 20:11 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Sun, 11 Oct 2009 20:11:48 +0000 (11 20:11 +0000)
treebb5cf557c25f5a508430937f5c42d80c622dec6e
parentc1f7c1e2a885bdcedf1fe10daa868da2963ea4fb
Add a action helper for touchscreen targets to only receive the touchpress coordinates if they're in the passed viewport. Also, fixes the coordinates to be relaitve to the viewport.

Use it in the color picker screen.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23116 a1c6a512-1295-4272-9138-f99709370657
apps/action.c
apps/action.h
apps/gui/color_picker.c