1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Maurus Cuelenaere 2010-02-14 15:31:19 +00:00
parent f5a0d61a1b
commit 5ea32cf05a

View file

@ -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;