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:
parent
f5a0d61a1b
commit
5ea32cf05a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue