summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;