diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2003-04-23 09:17:34 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2003-04-23 09:17:34 +0000 |
| commit | 86587527f52db8320f8d8ea48dfc76d3d93d79c8 (patch) | |
| tree | c823b7c0d71d0f68ce087a1ab0fcf35c2b8560d6 /apps/settings.c | |
| parent | b39dadf7f206695fa23ca7b6f305148a22b760c0 (diff) | |
| download | rockbox-86587527f52db8320f8d8ea48dfc76d3d93d79c8.zip rockbox-86587527f52db8320f8d8ea48dfc76d3d93d79c8.tar.gz rockbox-86587527f52db8320f8d8ea48dfc76d3d93d79c8.tar.bz2 rockbox-86587527f52db8320f8d8ea48dfc76d3d93d79c8.tar.xz | |
Added caption backlight: Turns on backlight briefly at the start and end of each track.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3585 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
| -rw-r--r-- | apps/settings.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/settings.c b/apps/settings.c index 8b74df8..f494941 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -125,6 +125,7 @@ modified unless the header & checksum test fails. Rest of config block, only saved to disk: 0xAE fade on pause/unpause/stop setting (bit 0) + caption backlight (bit 1) 0xB0 peak meter clip hold timeout (bit 0-4), peak meter performance (bit 7) 0xB1 peak meter release step size, peak_meter_dbfs (bit 7) 0xB2 peak meter min either in -db or in percent @@ -376,7 +377,9 @@ int settings_save( void ) config_block[0x29]=(unsigned char)(global_settings.topruntime >> 8); } - config_block[0xae] = (unsigned char)global_settings.fade_on_stop; + config_block[0xae] = (unsigned char) + ((global_settings.fade_on_stop & 1) | + ((global_settings.caption_backlight & 1) << 1)); config_block[0xb0] = (unsigned char)global_settings.peak_meter_clip_hold | (global_settings.peak_meter_performance ? 0x80 : 0); config_block[0xb1] = global_settings.peak_meter_release | @@ -663,7 +666,8 @@ void settings_load(void) global_settings.topruntime = config_block[0x28] | (config_block[0x29] << 8); - global_settings.fade_on_stop=config_block[0xae]; + global_settings.fade_on_stop = config_block[0xae] & 1; + global_settings.caption_backlight = config_block[0xae] & 2; global_settings.peak_meter_clip_hold = (config_block[0xb0]) & 0x1f; global_settings.peak_meter_performance = |