diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/wps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c index b42e386a91..2c668998f0 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c | |||
@@ -190,8 +190,10 @@ static int skintouch_to_wps(struct wps_data *data) | |||
190 | { | 190 | { |
191 | const int min_vol = sound_min(SOUND_VOLUME); | 191 | const int min_vol = sound_min(SOUND_VOLUME); |
192 | const int max_vol = sound_max(SOUND_VOLUME); | 192 | const int max_vol = sound_max(SOUND_VOLUME); |
193 | const int step_vol = sound_steps(SOUND_VOLUME); | ||
193 | global_settings.volume = (offset * (max_vol - min_vol)) / 100; | 194 | global_settings.volume = (offset * (max_vol - min_vol)) / 100; |
194 | global_settings.volume += min_vol; | 195 | global_settings.volume += min_vol; |
196 | global_settings.volume -= (global_settings.volume % step_vol); | ||
195 | setvol(); | 197 | setvol(); |
196 | } | 198 | } |
197 | return ACTION_TOUCHSCREEN; | 199 | return ACTION_TOUCHSCREEN; |