Update of /cvsroot/rockbox/apps
In directory sc8-pr-cvs1:/tmp/cvs-serv28314/apps
Modified Files:
settings.c
Log Message:
The bookmark options were incorrectly read from the settings block, even if the
data was uninitialized.
Index: settings.c
===================================================================
RCS file: /cvsroot/rockbox/apps/settings.c,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -b -r1.186 -r1.187
--- settings.c 17 Jan 2004 12:36:30 -0000 1.186
+++ settings.c 20 Jan 2004 13:18:59 -0000 1.187
@@ -775,10 +775,12 @@
if (config_block[0xa9] != 0xff)
global_settings.jump_scroll_delay = config_block[0xa9];
#endif
+ if(config_block[0xaf] != 0xff) {
global_settings.usemrb = (config_block[0xaf] >> 5) & 3;
global_settings.autocreatebookmark = (config_block[0xaf] >> 2) & 7;
global_settings.autoloadbookmark = (config_block[0xaf]) & 3;
}
+ }
settings_apply();
}
|