From adc9cb1adc667997808b0abdbf8749fcbdbbf461 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 21 Jun 2010 12:43:08 +0000 Subject: 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 --- apps/gui/skin_engine/skin_touchsupport.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/gui/skin_engine/skin_touchsupport.c') 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) *edge_offset = vx*100/r->width; else *edge_offset = vy*100/r->height; + if (r->reverse_bar) + *edge_offset = 100 - *edge_offset; } returncode = r->type; break; -- cgit v1.2.3