summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-16bit-common.c
diff options
context:
space:
mode:
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,