summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-16bit-common.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2011-12-03 22:39:08 +0000
committerRafaël Carré <rafael.carre@gmail.com>2011-12-03 22:39:08 +0000
commit6b5dff4c7be02d159b7c267372f63155cc31dbb8 (patch)
treed38d1f11c4b79c5ac83f885e1aae5fa4073eb837 /firmware/drivers/lcd-16bit-common.c
parent26851eaaa984ceecd9f9b50b082c0835f990c726 (diff)
downloadrockbox-6b5dff4c7be02d159b7c267372f63155cc31dbb8.tar.gz
rockbox-6b5dff4c7be02d159b7c267372f63155cc31dbb8.zip
lcd-16bit: move lcd_bitmap and lcd_bitmap_transparent to common code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31131 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd-16bit-common.c')
-rw-r--r--firmware/drivers/lcd-16bit-common.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-16bit-common.c b/firmware/drivers/lcd-16bit-common.c
index 7253524976..5f3997a5f6 100644
--- a/firmware/drivers/lcd-16bit-common.c
+++ b/firmware/drivers/lcd-16bit-common.c
@@ -910,6 +910,19 @@ static void ICODE_ATTR lcd_alpha_bitmap_part_mix(const fb_data* image,
910 } while (--row); 910 } while (--row);
911} 911}
912 912
913/* Draw a full native bitmap */
914void lcd_bitmap(const fb_data *src, int x, int y, int width, int height)
915{
916 lcd_bitmap_part(src, 0, 0, STRIDE(SCREEN_MAIN, width, height), x, y, width, height);
917}
918
919/* Draw a full native bitmap with a transparent color */
920void lcd_bitmap_transparent(const fb_data *src, int x, int y,
921 int width, int height)
922{
923 lcd_bitmap_transparent_part(src, 0, 0,
924 STRIDE(SCREEN_MAIN, width, height), x, y, width, height);
925}
913 926
914/* draw alpha bitmap for anti-alias font */ 927/* draw alpha bitmap for anti-alias font */
915void ICODE_ATTR lcd_alpha_bitmap_part(const unsigned char *src, int src_x, 928void ICODE_ATTR lcd_alpha_bitmap_part(const unsigned char *src, int src_x,