From bd1bb5f009ca81737882335c6037a17b8e2788b0 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 17 Jun 2005 21:43:00 +0000 Subject: iriver: LCD flip for H1x0 remote, some code cleanup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6739 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'apps/settings.c') diff --git a/apps/settings.c b/apps/settings.c index ea664a13ed..6588a6efd5 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -264,6 +264,7 @@ static const struct bit_entry rtc_bits[] = {1, S_O(remote_invert), false, "remote invert", off_on }, {5, S_O(remote_backlight_timeout), 5, "remote backlight timeout", "off,on,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90" }, + {1, S_O(remote_flip_display), false, "remote flip display", off_on }, #endif /* Current sum of bits: 259 (worst case) */ @@ -394,7 +395,7 @@ static const struct bit_entry hd_bits[] = #endif /* new stuff to be added at the end */ - + /* Sum of all bit sizes must not grow beyond 0xB8*8 = 1472 */ }; @@ -757,10 +758,11 @@ void settings_apply(void) lcd_set_contrast(global_settings.contrast); lcd_scroll_speed(global_settings.scroll_speed); #ifdef HAVE_REMOTE_LCD - lcd_remote_set_contrast(global_settings.remote_contrast); - lcd_remote_set_invert_display(global_settings.remote_invert); + 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); remote_backlight_set_timeout(global_settings.remote_backlight_timeout); -#endif +#endif backlight_set_timeout(global_settings.backlight_timeout); backlight_set_on_when_charging(global_settings.backlight_on_when_charging); ata_spindown(global_settings.disk_spindown); -- cgit v1.2.3