diff options
author | Tomas Salfischberger <tomas@rockbox.org> | 2006-01-22 01:42:05 +0000 |
---|---|---|
committer | Tomas Salfischberger <tomas@rockbox.org> | 2006-01-22 01:42:05 +0000 |
commit | 7fa39df4277fba4b567a57c79a8933afc96d9339 (patch) | |
tree | 89b5fcf1e0f6f80828e5ebe41531151b88de4b75 /apps/settings.c | |
parent | ee6a95a7d188e4d53f43e35713f0e1c9efe34236 (diff) | |
download | rockbox-7fa39df4277fba4b567a57c79a8933afc96d9339.tar.gz rockbox-7fa39df4277fba4b567a57c79a8933afc96d9339.zip |
Horizontal scrolling patch by Shachar Liberman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8412 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c index 7088cee950..ad812076a9 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -71,6 +71,7 @@ | |||
71 | #include "select.h" | 71 | #include "select.h" |
72 | #include "statusbar.h" | 72 | #include "statusbar.h" |
73 | #include "splash.h" | 73 | #include "splash.h" |
74 | #include "list.h" | ||
74 | 75 | ||
75 | #if CONFIG_CODEC == MAS3507D | 76 | #if CONFIG_CODEC == MAS3507D |
76 | void dac_line_in(bool enable); | 77 | void dac_line_in(bool enable); |
@@ -492,6 +493,15 @@ static const struct bit_entry hd_bits[] = | |||
492 | {4, S_O(brightness), 9, "brightness", NULL }, | 493 | {4, S_O(brightness), 9, "brightness", NULL }, |
493 | #endif | 494 | #endif |
494 | 495 | ||
496 | #ifdef HAVE_LCD_BITMAP | ||
497 | {1, S_O(offset_out_of_view), false, "Screen Scrolls Out Of View", off_on }, | ||
498 | #if LCD_WIDTH > 127 | ||
499 | {8, S_O(screen_scroll_step), 16, "screen scroll step", NULL }, /* 1...160 */ | ||
500 | #else | ||
501 | {7, S_O(screen_scroll_step), 16, "screen scroll step", NULL }, /* 1...112 */ | ||
502 | #endif | ||
503 | #endif /* HAVE_LCD_BITMAP */ | ||
504 | |||
495 | /* If values are just added to the end, no need to bump the version. */ | 505 | /* If values are just added to the end, no need to bump the version. */ |
496 | /* new stuff to be added at the end */ | 506 | /* new stuff to be added at the end */ |
497 | 507 | ||
@@ -957,6 +967,8 @@ void settings_apply(void) | |||
957 | font_reset(); | 967 | font_reset(); |
958 | 968 | ||
959 | lcd_scroll_step(global_settings.scroll_step); | 969 | lcd_scroll_step(global_settings.scroll_step); |
970 | gui_list_screen_scroll_step(global_settings.screen_scroll_step); | ||
971 | gui_list_screen_scroll_out_of_view(global_settings.offset_out_of_view); | ||
960 | #else | 972 | #else |
961 | lcd_jump_scroll(global_settings.jump_scroll); | 973 | lcd_jump_scroll(global_settings.jump_scroll); |
962 | lcd_jump_scroll_delay(global_settings.jump_scroll_delay * (HZ/10)); | 974 | lcd_jump_scroll_delay(global_settings.jump_scroll_delay * (HZ/10)); |