summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2006-05-22 16:40:41 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2006-05-22 16:40:41 +0000
commita86919ae2966af11c6b484a81caf5dc9c95d3e09 (patch)
tree5b9298c854bc0681c58ba4cced783a83ff3906cc /apps/settings.c
parent9ad02de6236dab85a11177c706a582bc7a7be75d (diff)
downloadrockbox-a86919ae2966af11c6b484a81caf5dc9c95d3e09.tar.gz
rockbox-a86919ae2966af11c6b484a81caf5dc9c95d3e09.zip
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
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c15
1 files changed, 11 insertions, 4 deletions
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;
94#include "dsp.h" 94#include "dsp.h"
95#endif 95#endif
96 96
97#define CONFIG_BLOCK_VERSION 43 97#define CONFIG_BLOCK_VERSION 44
98#define CONFIG_BLOCK_SIZE 512 98#define CONFIG_BLOCK_SIZE 512
99#define RTC_BLOCK_SIZE 44 99#define RTC_BLOCK_SIZE 44
100 100
@@ -359,6 +359,13 @@ static const struct bit_entry hd_bits[] =
359 {4, S_O(scroll_speed), 9, "scroll speed", NULL }, /* 0...15 */ 359 {4, S_O(scroll_speed), 9, "scroll speed", NULL }, /* 0...15 */
360 {8, S_O(scroll_delay), 100, "scroll delay", NULL }, /* 0...250 */ 360 {8, S_O(scroll_delay), 100, "scroll delay", NULL }, /* 0...250 */
361 {8, S_O(bidir_limit), 50, "bidir limit", NULL }, /* 0...200 */ 361 {8, S_O(bidir_limit), 50, "bidir limit", NULL }, /* 0...200 */
362
363#ifdef HAVE_REMOTE_LCD
364 {4, S_O(remote_scroll_speed), 9, "remote scroll speed", NULL }, /* 0...15 */
365 {8, S_O(remote_scroll_step), 6, "remote scroll step", NULL }, /* 1...160 */
366 {8, S_O(remote_scroll_delay), 100, "remote scroll delay", NULL }, /* 0...250 */
367#endif
368
362#ifdef HAVE_LCD_BITMAP 369#ifdef HAVE_LCD_BITMAP
363 {1, S_O(offset_out_of_view), false, "Screen Scrolls Out Of View", off_on }, 370 {1, S_O(offset_out_of_view), false, "Screen Scrolls Out Of View", off_on },
364#if LCD_WIDTH > 255 371#if LCD_WIDTH > 255
@@ -1004,9 +1011,9 @@ void settings_apply(void)
1004 lcd_remote_set_contrast(global_settings.remote_contrast); 1011 lcd_remote_set_contrast(global_settings.remote_contrast);
1005 lcd_remote_set_invert_display(global_settings.remote_invert); 1012 lcd_remote_set_invert_display(global_settings.remote_invert);
1006 lcd_remote_set_flip(global_settings.remote_flip_display); 1013 lcd_remote_set_flip(global_settings.remote_flip_display);
1007 lcd_remote_scroll_speed(global_settings.scroll_speed); 1014 lcd_remote_scroll_speed(global_settings.remote_scroll_speed);
1008 lcd_remote_scroll_step(global_settings.scroll_step); 1015 lcd_remote_scroll_step(global_settings.remote_scroll_step);
1009 lcd_remote_scroll_delay(global_settings.scroll_delay * (HZ/10)); 1016 lcd_remote_scroll_delay(global_settings.remote_scroll_delay * (HZ/10));
1010#ifdef HAVE_REMOTE_LCD_TICKING 1017#ifdef HAVE_REMOTE_LCD_TICKING
1011 lcd_remote_emireduce(global_settings.remote_reduce_ticking); 1018 lcd_remote_emireduce(global_settings.remote_reduce_ticking);
1012#endif 1019#endif