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 2c668998f0..35716087c2 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -182,7 +182,7 @@ static int skintouch_to_wps(struct wps_data *data)
182 return ACTION_WPS_HOTKEY; 182 return ACTION_WPS_HOTKEY;
183#endif 183#endif
184 case ACTION_TOUCH_SCROLLBAR: 184 case ACTION_TOUCH_SCROLLBAR:
185 skin_get_global_state()->id3->elapsed = skin_get_global_state()->id3->length*offset/100; 185 skin_get_global_state()->id3->elapsed = skin_get_global_state()->id3->length*offset/1000;
186 audio_pre_ff_rewind(); 186 audio_pre_ff_rewind();
187 audio_ff_rewind(skin_get_global_state()->id3->elapsed); 187 audio_ff_rewind(skin_get_global_state()->id3->elapsed);
188 return ACTION_TOUCHSCREEN; 188 return ACTION_TOUCHSCREEN;
@@ -191,7 +191,7 @@ static int skintouch_to_wps(struct wps_data *data)
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 const int step_vol = sound_steps(SOUND_VOLUME);
194 global_settings.volume = (offset * (max_vol - min_vol)) / 100; 194 global_settings.volume = (offset * (max_vol - min_vol)) / 1000;
195 global_settings.volume += min_vol; 195 global_settings.volume += min_vol;
196 global_settings.volume -= (global_settings.volume % step_vol); 196 global_settings.volume -= (global_settings.volume % step_vol);
197 setvol(); 197 setvol();