diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2011-09-25 12:55:40 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2011-09-25 12:55:40 +0000 |
| commit | f7c2978cc46c4e704fa5ca04910cd6865d3720af (patch) | |
| tree | 1b4fa13c6b60f500731e334f0631d3fe12fdc45a /apps/main.c | |
| parent | 93e748ac840da04b72f7ad02d4937f9ef09e4cb3 (diff) | |
| download | rockbox-f7c2978cc46c4e704fa5ca04910cd6865d3720af.zip rockbox-f7c2978cc46c4e704fa5ca04910cd6865d3720af.tar.gz rockbox-f7c2978cc46c4e704fa5ca04910cd6865d3720af.tar.bz2 rockbox-f7c2978cc46c4e704fa5ca04910cd6865d3720af.tar.xz | |
Check for the magic file "/.rockbox/skin_buffer_size.txt" on bootup which can have a number which is the amount of kilobytes to allocate for the skin buffer. This is only checked on boot so if you need to change it you must reboot to enable.
Currently the default size is 80KB on colour targets which can be way too much or not enough for users.
The format of the /.rockbox/skin_buffer_size.txt file is simply a number (so 120 if you want 120 kilobytes), NO trainling spaces or text of any kind
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30599 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
| -rw-r--r-- | apps/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/main.c b/apps/main.c index a617882..84f8bc3 100644 --- a/apps/main.c +++ b/apps/main.c @@ -350,6 +350,9 @@ static void init(void) #ifdef HAVE_REMOTE_LCD lcd_remote_init(); #endif + /* This init call allocates an *unmovable* block so must be + * before any other moveable allocs. */ + theme_init_buffer(); #ifdef HAVE_LCD_BITMAP FOR_NB_SCREENS(i) global_status.font_id[i] = FONT_SYSFIXED; @@ -390,7 +393,6 @@ static void init(void) tree_mem_init(); filetype_init(); playlist_init(); - theme_init_buffer(); #if CONFIG_CODEC != SWCODEC mp3_init( global_settings.volume, @@ -439,7 +441,10 @@ static void init(void) #endif cpu_boost(true); #endif - + + /* This init call allocates an *unmovable* block so must be + * before any other moveable allocs. */ + theme_init_buffer(); settings_reset(); |