diff options
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r-- | apps/gui/gwps-common.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index ee0bc3bdb4..5f421de2d8 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c | |||
@@ -145,13 +145,6 @@ bool update_onvol_change(struct gui_wps * gwps) | |||
145 | 145 | ||
146 | bool ffwd_rew(int button) | 146 | bool ffwd_rew(int button) |
147 | { | 147 | { |
148 | static const uint16_t ff_rew_steps[] = { | ||
149 | 1000, 2000, 3000, 4000, | ||
150 | 5000, 6000, 8000, 10000, | ||
151 | 15000, 20000, 25000, 30000, | ||
152 | 45000, 60000 | ||
153 | }; | ||
154 | |||
155 | unsigned int step = 0; /* current ff/rewind step */ | 148 | unsigned int step = 0; /* current ff/rewind step */ |
156 | unsigned int max_step = 0; /* maximum ff/rewind step */ | 149 | unsigned int max_step = 0; /* maximum ff/rewind step */ |
157 | int ff_rewind_count = 0; /* current ff/rewind count (in ticks) */ | 150 | int ff_rewind_count = 0; /* current ff/rewind count (in ticks) */ |
@@ -227,7 +220,7 @@ bool ffwd_rew(int button) | |||
227 | 220 | ||
228 | wps_state.ff_rewind = true; | 221 | wps_state.ff_rewind = true; |
229 | 222 | ||
230 | step = ff_rew_steps[global_settings.ff_rewind_min_step]; | 223 | step = 1000 * global_settings.ff_rewind_min_step; |
231 | 224 | ||
232 | accel_tick = current_tick + | 225 | accel_tick = current_tick + |
233 | global_settings.ff_rewind_accel*HZ; | 226 | global_settings.ff_rewind_accel*HZ; |