From f443e7bbf7771ce3a79b1c2116b9cf216f15938f Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Tue, 8 Nov 2011 21:36:49 +0000 Subject: Support for transparency in 32bit bitmaps on color targets. This uses the alpha blending capabilities introduced with anti-aliased fonts to draw bitmaps with transparency information. The bmp loader is extended to read this information (pass FORMAT_TRANSPARENT in format). The alpha information will be used when drawing the bitmap. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30937 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/lcd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/export') diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 47ea94bca9..ad579820ad 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -467,6 +467,9 @@ struct bitmap { #if (LCD_DEPTH > 1) || defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1) int format; unsigned char *maskdata; +#endif +#ifdef HAVE_LCD_COLOR + int alpha_offset; /* byte-offset of alpha channel in data */ #endif unsigned char *data; }; -- cgit v1.2.3