From a86919ae2966af11c6b484a81caf5dc9c95d3e09 Mon Sep 17 00:00:00 2001 From: Marcoen Hirschberg Date: Mon, 22 May 2006 16:40:41 +0000 Subject: add seperate scroll options for remote. Patch by Alexander Spyridakis which fixes bug #5348. Changes CONFIG_BLOCK_VERSION so save your settings.. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9974 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'apps/settings.c') diff --git a/apps/settings.c b/apps/settings.c index 1a6b4c3199..8122c58aa8 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -94,7 +94,7 @@ const char rec_base_directory[] = REC_BASE_DIR; #include "dsp.h" #endif -#define CONFIG_BLOCK_VERSION 43 +#define CONFIG_BLOCK_VERSION 44 #define CONFIG_BLOCK_SIZE 512 #define RTC_BLOCK_SIZE 44 @@ -359,6 +359,13 @@ static const struct bit_entry hd_bits[] = {4, S_O(scroll_speed), 9, "scroll speed", NULL }, /* 0...15 */ {8, S_O(scroll_delay), 100, "scroll delay", NULL }, /* 0...250 */ {8, S_O(bidir_limit), 50, "bidir limit", NULL }, /* 0...200 */ + +#ifdef HAVE_REMOTE_LCD + {4, S_O(remote_scroll_speed), 9, "remote scroll speed", NULL }, /* 0...15 */ + {8, S_O(remote_scroll_step), 6, "remote scroll step", NULL }, /* 1...160 */ + {8, S_O(remote_scroll_delay), 100, "remote scroll delay", NULL }, /* 0...250 */ +#endif + #ifdef HAVE_LCD_BITMAP {1, S_O(offset_out_of_view), false, "Screen Scrolls Out Of View", off_on }, #if LCD_WIDTH > 255 @@ -1004,9 +1011,9 @@ void settings_apply(void) lcd_remote_set_contrast(global_settings.remote_contrast); lcd_remote_set_invert_display(global_settings.remote_invert); lcd_remote_set_flip(global_settings.remote_flip_display); - lcd_remote_scroll_speed(global_settings.scroll_speed); - lcd_remote_scroll_step(global_settings.scroll_step); - lcd_remote_scroll_delay(global_settings.scroll_delay * (HZ/10)); + lcd_remote_scroll_speed(global_settings.remote_scroll_speed); + lcd_remote_scroll_step(global_settings.remote_scroll_step); + lcd_remote_scroll_delay(global_settings.remote_scroll_delay * (HZ/10)); #ifdef HAVE_REMOTE_LCD_TICKING lcd_remote_emireduce(global_settings.remote_reduce_ticking); #endif -- cgit v1.2.3