diff options
author | William Wilgus <wilgus.william@gmail.com> | 2021-08-19 22:00:36 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2021-08-26 12:55:34 +0000 |
commit | b56372bbcb016376cf841fb81b1107832a3fada1 (patch) | |
tree | 32f0541dca539564502967af95ae3ac1cdf3704a /apps/recorder | |
parent | cbf1970b563e5fd5ef5b20f7dde47db80343bd30 (diff) | |
download | rockbox-b56372bbcb016376cf841fb81b1107832a3fada1.tar.gz rockbox-b56372bbcb016376cf841fb81b1107832a3fada1.zip |
Plugin Api add core bitmaps
share all the core icons with plugins
these are all small mono icons like usb plug icon or
play, fast forward, rewind icons
--include the icon_helper function
Change-Id: I385028815a4dd368515f491a9e19dee3d500252d
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/icons.c | 8 | ||||
-rw-r--r-- | apps/recorder/icons.h | 24 |
2 files changed, 32 insertions, 0 deletions
diff --git a/apps/recorder/icons.c b/apps/recorder/icons.c index cc53716674..de623d28b7 100644 --- a/apps/recorder/icons.c +++ b/apps/recorder/icons.c | |||
@@ -122,3 +122,11 @@ const unsigned char bitmap_icon_disk[12] = | |||
122 | {0x00,0x00,0x00,0x1c,0x2e,0x4f,0x77,0x79,0x3a,0x1c,0x00,0x00}; | 122 | {0x00,0x00,0x00,0x1c,0x2e,0x4f,0x77,0x79,0x3a,0x1c,0x00,0x00}; |
123 | #endif | 123 | #endif |
124 | 124 | ||
125 | const struct cbmp_bitmap_info_entry core_bitmaps[CBMP_BitmapFormatLast] = /* */ | ||
126 | { | ||
127 | /* index, pointer, w, h, count */ | ||
128 | [CBMP_Mono_5x8] = {bitmap_icons_5x8[0], 5,8, Icon5x8Last}, | ||
129 | [CBMP_Mono_7x8] = {bitmap_icons_7x8[0], 7, 8, Icon7x8Last}, | ||
130 | [CBMP_Mono_12x8] = {bitmap_icon_disk, 12, 8, 1}, | ||
131 | }; | ||
132 | |||
diff --git a/apps/recorder/icons.h b/apps/recorder/icons.h index 249453a943..944f319415 100644 --- a/apps/recorder/icons.h +++ b/apps/recorder/icons.h | |||
@@ -32,7 +32,25 @@ | |||
32 | #ifdef HAVE_REMOTE_LCD | 32 | #ifdef HAVE_REMOTE_LCD |
33 | #include "bitmaps/remote_rockboxlogo.h" | 33 | #include "bitmaps/remote_rockboxlogo.h" |
34 | #endif | 34 | #endif |
35 | #endif /* PLUGIN */ | ||
36 | |||
37 | struct cbmp_bitmap_info_entry /* */ | ||
38 | { | ||
39 | const unsigned char* pbmp; | ||
40 | unsigned char width; | ||
41 | unsigned char height; /* !ASSUMES MULTIPLES OF 8! */ | ||
42 | unsigned char count; | ||
43 | }; | ||
44 | |||
45 | enum cbmp_bitmap_format | ||
46 | { | ||
47 | CBMP_Mono_5x8 = 0, | ||
48 | CBMP_Mono_7x8, | ||
49 | CBMP_Mono_12x8, | ||
50 | CBMP_BitmapFormatLast | ||
51 | }; | ||
35 | 52 | ||
53 | extern const struct cbmp_bitmap_info_entry core_bitmaps[CBMP_BitmapFormatLast]; | ||
36 | 54 | ||
37 | /* Symbolic names for icons */ | 55 | /* Symbolic names for icons */ |
38 | enum icons_5x8 { | 56 | enum icons_5x8 { |
@@ -65,6 +83,12 @@ enum icons_7x8 { | |||
65 | Icon7x8Last | 83 | Icon7x8Last |
66 | }; | 84 | }; |
67 | 85 | ||
86 | enum icons_12x8 { | ||
87 | Icon_Disk, | ||
88 | Icon12x8Last | ||
89 | }; | ||
90 | |||
91 | #ifndef PLUGIN | ||
68 | #if defined (HAVE_RECORDING) | 92 | #if defined (HAVE_RECORDING) |
69 | #define BM_GLYPH_WIDTH 4 | 93 | #define BM_GLYPH_WIDTH 4 |
70 | enum Glyphs_4x8 { | 94 | enum Glyphs_4x8 { |