summaryrefslogtreecommitdiff
path: root/apps/gui/wps.c
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/gui/wps.c
parentf5a0d61a1b24ea4397234e0c65bc0cbb71e4071f (diff)
downloadrockbox-5ea32cf05aeef73911a134045c7b1a3eb0b4e3d4.tar.gz
rockbox-5ea32cf05aeef73911a134045c7b1a3eb0b4e3d4.zip
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/gui/wps.c')
-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 108cb19398..fb703062cd 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -703,7 +703,7 @@ int wps_get_touchaction(struct wps_data *data)
703 (max_vol - min_vol)) / r->width; 703 (max_vol - min_vol)) / r->width;
704 else 704 else
705 /* portrait */ 705 /* portrait */
706 global_settings.volume = (vy * 706 global_settings.volume = ((r->height - vy) *
707 (max_vol-min_vol)) / r->height; 707 (max_vol-min_vol)) / r->height;
708 708
709 global_settings.volume += min_vol; 709 global_settings.volume += min_vol;