summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/credits.c2
-rw-r--r--apps/filetypes.c2
-rw-r--r--apps/filetypes.h4
-rw-r--r--apps/playlist_viewer.c4
-rw-r--r--apps/plugin.h4
-rw-r--r--apps/recorder/icons.c10
-rw-r--r--apps/recorder/icons.h10
-rw-r--r--apps/tree.c4
8 files changed, 17 insertions, 23 deletions
diff --git a/apps/credits.c b/apps/credits.c
index 71d77a6feb..9ab14345fa 100644
--- a/apps/credits.c
+++ b/apps/credits.c
@@ -24,7 +24,7 @@
24#include "button.h" 24#include "button.h"
25#include "sprintf.h" 25#include "sprintf.h"
26 26
27char* credits[] = { 27char* const credits[] = {
28#include "credits.raw" /* generated list of names from docs/CREDITS */ 28#include "credits.raw" /* generated list of names from docs/CREDITS */
29}; 29};
30 30
diff --git a/apps/filetypes.c b/apps/filetypes.c
index b7004f58db..cab9618f36 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -136,7 +136,7 @@ void filetype_init(void)
136 136
137/* get icon */ 137/* get icon */
138#ifdef HAVE_LCD_BITMAP 138#ifdef HAVE_LCD_BITMAP
139char* filetype_get_icon(int attr) 139const char* filetype_get_icon(int attr)
140#else 140#else
141int filetype_get_icon(int attr) 141int filetype_get_icon(int attr)
142#endif 142#endif
diff --git a/apps/filetypes.h b/apps/filetypes.h
index 22668fd725..c5bccf4498 100644
--- a/apps/filetypes.h
+++ b/apps/filetypes.h
@@ -25,7 +25,7 @@
25 25
26int filetype_get_attr(char*); 26int filetype_get_attr(char*);
27#ifdef HAVE_LCD_BITMAP 27#ifdef HAVE_LCD_BITMAP
28char* filetype_get_icon(int); 28const char* filetype_get_icon(int);
29#else 29#else
30int filetype_get_icon(int); 30int filetype_get_icon(int);
31#endif 31#endif
@@ -37,7 +37,7 @@ int filetype_load_plugin(char*,char*);
37 37
38struct file_type { 38struct file_type {
39#ifdef HAVE_LCD_BITMAP 39#ifdef HAVE_LCD_BITMAP
40 unsigned char* icon; /* the icon which shall be used for it, NULL if unknown */ 40 const unsigned char* icon; /* the icon which shall be used for it, NULL if unknown */
41#else 41#else
42 int icon; /* the icon which shall be used for it, -1 if unknown */ 42 int icon; /* the icon which shall be used for it, -1 if unknown */
43#endif 43#endif
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index b7e81eeac6..c30daf48ba 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -118,10 +118,6 @@ static struct playlist_entry tracks[MAX_PLAYLIST_ENTRIES];
118/* Used when viewing playlists on disk */ 118/* Used when viewing playlists on disk */
119static struct playlist_info temp_playlist; 119static struct playlist_info temp_playlist;
120 120
121#ifdef HAVE_LCD_BITMAP
122extern unsigned char bitmap_icons_6x8[LastIcon][6];
123#endif
124
125static bool initialize(char* filename, bool reload); 121static bool initialize(char* filename, bool reload);
126static void load_playlist_entries(int start_index); 122static void load_playlist_entries(int start_index);
127static void load_playlist_entries_r(int end_index); 123static void load_playlist_entries_r(int end_index);
diff --git a/apps/plugin.h b/apps/plugin.h
index 659e6dbda3..085cccfc6b 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -120,8 +120,8 @@ struct plugin_api {
120 void (*lcd_unlock_pattern)(unsigned char pat); 120 void (*lcd_unlock_pattern)(unsigned char pat);
121 void (*lcd_putc)(int x, int y, unsigned short ch); 121 void (*lcd_putc)(int x, int y, unsigned short ch);
122#else 122#else
123 void (*lcd_putsxy)(int x, int y, unsigned char *string); 123 void (*lcd_putsxy)(int x, int y, const unsigned char *string);
124 void (*lcd_bitmap)(unsigned char *src, int x, int y, 124 void (*lcd_bitmap)(const unsigned char *src, int x, int y,
125 int nx, int ny, bool clear); 125 int nx, int ny, bool clear);
126 void (*lcd_drawline)(int x1, int y1, int x2, int y2); 126 void (*lcd_drawline)(int x1, int y1, int x2, int y2);
127 void (*lcd_clearline)(int x1, int y1, int x2, int y2); 127 void (*lcd_clearline)(int x1, int y1, int x2, int y2);
diff --git a/apps/recorder/icons.c b/apps/recorder/icons.c
index b831e59f53..41e584ed35 100644
--- a/apps/recorder/icons.c
+++ b/apps/recorder/icons.c
@@ -28,7 +28,7 @@
28 28
29#include "icons.h" 29#include "icons.h"
30 30
31unsigned char slider_bar[] = 31const unsigned char slider_bar[] =
32{ 32{
33 0x38, 0x28, 0x28, 0x28, 0x28, 33 0x38, 0x28, 0x28, 0x28, 0x28,
34 0x7c, 0x28, 0x28, 0x28, 0x28, 34 0x7c, 0x28, 0x28, 0x28, 0x28,
@@ -40,13 +40,13 @@ unsigned char slider_bar[] =
40 0x7c, 0x28, 0x28, 0x28, 0x28, 0x38 40 0x7c, 0x28, 0x28, 0x28, 0x28, 0x38
41}; 41};
42 42
43unsigned char bitmap_icons_5x8[][5] = 43const unsigned char bitmap_icons_5x8[][5] =
44{ 44{
45 /* Lock */ 45 /* Lock */
46 {0x78,0x7f,0x49,0x7f,0x78} 46 {0x78,0x7f,0x49,0x7f,0x78}
47}; 47};
48 48
49unsigned char bitmap_icons_6x8[LastIcon][6] = 49const unsigned char bitmap_icons_6x8[LastIcon][6] =
50{ 50{
51 { 0x00, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f }, /* Box_Filled */ 51 { 0x00, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f }, /* Box_Filled */
52 { 0x00, 0x7f, 0x41, 0x41, 0x41, 0x7f }, /* Box_Empty */ 52 { 0x00, 0x7f, 0x41, 0x41, 0x41, 0x7f }, /* Box_Empty */
@@ -67,7 +67,7 @@ unsigned char bitmap_icons_6x8[LastIcon][6] =
67 { 0xff, 0x81, 0xaf, 0xaa, 0x8c, 0xf8 }, /* Bookmark file */ 67 { 0xff, 0x81, 0xaf, 0xaa, 0x8c, 0xf8 }, /* Bookmark file */
68}; 68};
69 69
70unsigned char bitmap_icons_7x8[][7] = 70const unsigned char bitmap_icons_7x8[][7] =
71{ 71{
72 {0x08,0x1c,0x3e,0x3e,0x3e,0x14,0x14}, /* Power plug */ 72 {0x08,0x1c,0x3e,0x3e,0x3e,0x14,0x14}, /* Power plug */
73 {0x00,0x1c,0x1c,0x3e,0x7f,0x00,0x00}, /* Speaker */ 73 {0x00,0x1c,0x1c,0x3e,0x7f,0x00,0x00}, /* Speaker */
@@ -86,7 +86,7 @@ unsigned char bitmap_icons_7x8[][7] =
86 {0x20,0x30,0x38,0x3c,0x38,0x30,0x20}, /* Up-arrow */ 86 {0x20,0x30,0x38,0x3c,0x38,0x30,0x20}, /* Up-arrow */
87}; 87};
88 88
89unsigned char rockbox112x37[]={ 89const unsigned char rockbox112x37[]={
90 0x00, 0x00, 0x02, 0xff, 0x02, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 90 0x00, 0x00, 0x02, 0xff, 0x02, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa,
91 0xf8, 0xf8, 0xf0, 0xe0, 0x80, 0x00, 0x00, 0x80, 0xe0, 0xf0, 0xf8, 0xf8, 0xfc, 91 0xf8, 0xf8, 0xf0, 0xe0, 0x80, 0x00, 0x00, 0x80, 0xe0, 0xf0, 0xf8, 0xf8, 0xfc,
92 0x7c, 0x7d, 0xfd, 0xfa, 0xfa, 0xf4, 0xe8, 0x90, 0x60, 0x80, 0xe0, 0x10, 0xc8, 92 0x7c, 0x7d, 0xfd, 0xfa, 0xfa, 0xf4, 0xe8, 0x90, 0x60, 0x80, 0xe0, 0x10, 0xc8,
diff --git a/apps/recorder/icons.h b/apps/recorder/icons.h
index afea0b1ae4..cf7687e0bd 100644
--- a/apps/recorder/icons.h
+++ b/apps/recorder/icons.h
@@ -60,13 +60,13 @@ enum icons_7x8 {
60 Icon_Last 60 Icon_Last
61}; 61};
62 62
63extern unsigned char bitmap_icons_5x8[1][5]; 63extern const unsigned char bitmap_icons_5x8[1][5];
64extern unsigned char bitmap_icons_6x8[LastIcon][6]; 64extern const unsigned char bitmap_icons_6x8[LastIcon][6];
65extern unsigned char bitmap_icons_7x8[Icon_Last][7]; 65extern const unsigned char bitmap_icons_7x8[Icon_Last][7];
66 66
67extern unsigned char rockbox112x37[]; 67extern const unsigned char rockbox112x37[];
68 68
69extern unsigned char slider_bar[]; 69extern const unsigned char slider_bar[];
70 70
71#define STATUSBAR_X_POS 0 71#define STATUSBAR_X_POS 0
72#define STATUSBAR_Y_POS 0 /* MUST be a multiple of 8 */ 72#define STATUSBAR_Y_POS 0 /* MUST be a multiple of 8 */
diff --git a/apps/tree.c b/apps/tree.c
index 988e6b3d93..754e84f508 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -163,8 +163,6 @@ void tree_get_filetypes(struct filetype** types, int* count)
163#define SCROLLBAR_Y lcd_getymargin() 163#define SCROLLBAR_Y lcd_getymargin()
164#define SCROLLBAR_WIDTH 6 164#define SCROLLBAR_WIDTH 6
165 165
166extern unsigned char bitmap_icons_6x8[LastIcon][6];
167
168#else /* HAVE_LCD_BITMAP */ 166#else /* HAVE_LCD_BITMAP */
169 167
170#define TREE_MAX_ON_SCREEN 2 168#define TREE_MAX_ON_SCREEN 2
@@ -461,7 +459,7 @@ static int showdir(char *path, int start, int *dirfilter)
461 bool dir_buffer_full; 459 bool dir_buffer_full;
462 460
463#ifdef HAVE_LCD_BITMAP 461#ifdef HAVE_LCD_BITMAP
464 char* icon; 462 const char* icon;
465 int line_height; 463 int line_height;
466 int fw, fh; 464 int fw, fh;
467 lcd_setfont(FONT_UI); 465 lcd_setfont(FONT_UI);