summaryrefslogtreecommitdiff
path: root/apps/gui/wps.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/wps.c')
-rw-r--r--apps/gui/wps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index fe656034b9..d35a5ac6d2 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -182,8 +182,8 @@ static int skintouch_to_wps(void)
182 const int min_vol = sound_min(SOUND_VOLUME); 182 const int min_vol = sound_min(SOUND_VOLUME);
183 const int max_vol = sound_max(SOUND_VOLUME); 183 const int max_vol = sound_max(SOUND_VOLUME);
184 const int step_vol = sound_steps(SOUND_VOLUME); 184 const int step_vol = sound_steps(SOUND_VOLUME);
185 global_settings.volume = (offset * (max_vol - min_vol)) / 1000; 185
186 global_settings.volume += min_vol; 186 global_settings.volume = from_normalized_volume(offset, min_vol, max_vol, 1000);
187 global_settings.volume -= (global_settings.volume % step_vol); 187 global_settings.volume -= (global_settings.volume % step_vol);
188 setvol(); 188 setvol();
189 } 189 }