summaryrefslogtreecommitdiff
path: root/firmware/export/lcd.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/lcd.h')
-rw-r--r--firmware/export/lcd.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index 393e91f93e..f4c40fb88c 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -201,11 +201,16 @@ enum
201 FORMAT_ANY /* For passing to read_bmp_file() */ 201 FORMAT_ANY /* For passing to read_bmp_file() */
202}; 202};
203 203
204#define FORMAT_TRANSPARENT 0x40000000
205
206#define TRANSPARENT_COLOR LCD_RGBPACK(255,0,255)
207
204struct bitmap { 208struct bitmap {
205 int width; 209 int width;
206 int height; 210 int height;
207#if LCD_DEPTH > 1 211#if LCD_DEPTH > 1
208 int format; 212 int format;
213 unsigned char *maskdata;
209#endif 214#endif
210 unsigned char *data; 215 unsigned char *data;
211}; 216};
@@ -265,6 +270,12 @@ extern void lcd_mono_bitmap_part(const unsigned char *src, int src_x, int src_y,
265 int stride, int x, int y, int width, int height); 270 int stride, int x, int y, int width, int height);
266extern void lcd_mono_bitmap(const unsigned char *src, int x, int y, int width, 271extern void lcd_mono_bitmap(const unsigned char *src, int x, int y, int width,
267 int height); 272 int height);
273extern void lcd_bitmap_transparent_part(const fb_data *src,
274 int src_x, int src_y,
275 int stride, int x, int y, int width,
276 int height);
277extern void lcd_bitmap_transparent(const fb_data *src, int x, int y,
278 int width, int height);
268#else /* LCD_DEPTH == 1 */ 279#else /* LCD_DEPTH == 1 */
269#define lcd_mono_bitmap lcd_bitmap 280#define lcd_mono_bitmap lcd_bitmap
270#define lcd_mono_bitmap_part lcd_bitmap_part 281#define lcd_mono_bitmap_part lcd_bitmap_part