summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2010-02-14 15:31:19 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2010-02-14 15:31:19 +0000
commit5ea32cf05aeef73911a134045c7b1a3eb0b4e3d4 (patch)
treee264afaf8d42bd0e5f813a7bd216b2f560460e58 /apps
parentf5a0d61a1b24ea4397234e0c65bc0cbb71e4071f (diff)
downloadrockbox-5ea32cf05aeef73911a134045c7b1a3eb0b4e3d4.zip
rockbox-5ea32cf05aeef73911a134045c7b1a3eb0b4e3d4.tar.gz
rockbox-5ea32cf05aeef73911a134045c7b1a3eb0b4e3d4.tar.bz2
rockbox-5ea32cf05aeef73911a134045c7b1a3eb0b4e3d4.tar.xz
WPS volume touchregion: fix reverse Y coordinate in portrait mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24649 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/wps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index 108cb19..fb70306 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -703,7 +703,7 @@ int wps_get_touchaction(struct wps_data *data)
(max_vol - min_vol)) / r->width;
else
/* portrait */
- global_settings.volume = (vy *
+ global_settings.volume = ((r->height - vy) *
(max_vol-min_vol)) / r->height;
global_settings.volume += min_vol;