diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-06-21 12:43:08 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-06-21 12:43:08 +0000 |
commit | adc9cb1adc667997808b0abdbf8749fcbdbbf461 (patch) | |
tree | 7ef600a4946b6e67aa6bc9db29acebd9658341bd /apps/gui/skin_engine/skin_touchsupport.c | |
parent | e481e887db23d634c8c2dfcec1594eec0646a63d (diff) | |
download | rockbox-adc9cb1adc667997808b0abdbf8749fcbdbbf461.tar.gz rockbox-adc9cb1adc667997808b0abdbf8749fcbdbbf461.zip |
Allow the progressbar and volume touch regions to be reverse by prepending them with ! (so full is the left/top instead of right/bottom)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27013 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_touchsupport.c')
-rw-r--r-- | apps/gui/skin_engine/skin_touchsupport.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_touchsupport.c b/apps/gui/skin_engine/skin_touchsupport.c index 9c0cda779a..09fbd86acd 100644 --- a/apps/gui/skin_engine/skin_touchsupport.c +++ b/apps/gui/skin_engine/skin_touchsupport.c | |||
@@ -95,6 +95,8 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset) | |||
95 | *edge_offset = vx*100/r->width; | 95 | *edge_offset = vx*100/r->width; |
96 | else | 96 | else |
97 | *edge_offset = vy*100/r->height; | 97 | *edge_offset = vy*100/r->height; |
98 | if (r->reverse_bar) | ||
99 | *edge_offset = 100 - *edge_offset; | ||
98 | } | 100 | } |
99 | returncode = r->type; | 101 | returncode = r->type; |
100 | break; | 102 | break; |