summaryrefslogtreecommitdiff
path: root/lib/skin_parser/skin_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/skin_parser/skin_buffer.c')
-rw-r--r--lib/skin_parser/skin_buffer.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/skin_parser/skin_buffer.c b/lib/skin_parser/skin_buffer.c
index 8a5a47ddba..b0910976e2 100644
--- a/lib/skin_parser/skin_buffer.c
+++ b/lib/skin_parser/skin_buffer.c
@@ -29,22 +29,11 @@
29static unsigned char buffer[SKIN_BUFFER_SIZE]; 29static unsigned char buffer[SKIN_BUFFER_SIZE];
30static unsigned char *buffer_front = NULL; /* start of the free space, 30static unsigned char *buffer_front = NULL; /* start of the free space,
31 increases with allocation*/ 31 increases with allocation*/
32static size_t buf_size = SKIN_BUFFER_SIZE;
33#endif 32#endif
34 33
35void skin_buffer_init(size_t size) 34void skin_buffer_init(void)
36{ 35{
37#if 0 /* this will go in again later probably */ 36#if defined(ROCKBOX)
38 if (buffer == NULL)
39 {
40 buf_size = SKIN_BUFFER_SIZE;/* global_settings.skin_buf_size */
41
42 buffer = buffer_alloc(buf_size);
43 buffer_front = buffer;
44 buffer_back = bufer + buf_size;
45 }
46 else
47#elif defined(ROCKBOX)
48 { 37 {
49 /* reset the buffer.... */ 38 /* reset the buffer.... */
50 buffer_front = buffer; 39 buffer_front = buffer;