diff options
Diffstat (limited to 'firmware/drivers/lcd-16bit-vert.c')
-rw-r--r-- | firmware/drivers/lcd-16bit-vert.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/firmware/drivers/lcd-16bit-vert.c b/firmware/drivers/lcd-16bit-vert.c index 1d9e207bd9..f020d74757 100644 --- a/firmware/drivers/lcd-16bit-vert.c +++ b/firmware/drivers/lcd-16bit-vert.c | |||
@@ -369,7 +369,7 @@ void ICODE_ATTR lcd_bitmap_part(const fb_data *src, int src_x, int src_y, | |||
369 | int stride, int x, int y, int width, | 369 | int stride, int x, int y, int width, |
370 | int height) | 370 | int height) |
371 | { | 371 | { |
372 | fb_data *dst, *dst_end; | 372 | fb_data *dst; |
373 | 373 | ||
374 | /******************** Image in viewport clipping **********************/ | 374 | /******************** Image in viewport clipping **********************/ |
375 | /* nothing to draw? */ | 375 | /* nothing to draw? */ |
@@ -427,7 +427,7 @@ void ICODE_ATTR lcd_bitmap_part(const fb_data *src, int src_x, int src_y, | |||
427 | 427 | ||
428 | src += stride * src_x + src_y; /* move starting point */ | 428 | src += stride * src_x + src_y; /* move starting point */ |
429 | dst = LCDADDR(x, y); | 429 | dst = LCDADDR(x, y); |
430 | dst_end = dst + width * LCD_HEIGHT; | 430 | fb_data *dst_end = dst + width * LCD_HEIGHT; |
431 | 431 | ||
432 | do | 432 | do |
433 | { | 433 | { |
@@ -438,12 +438,6 @@ void ICODE_ATTR lcd_bitmap_part(const fb_data *src, int src_x, int src_y, | |||
438 | while (dst < dst_end); | 438 | while (dst < dst_end); |
439 | } | 439 | } |
440 | 440 | ||
441 | /* Draw a full native bitmap */ | ||
442 | void lcd_bitmap(const fb_data *src, int x, int y, int width, int height) | ||
443 | { | ||
444 | lcd_bitmap_part(src, 0, 0, STRIDE(SCREEN_MAIN, width, height), x, y, width, height); | ||
445 | } | ||
446 | |||
447 | /* Draw a partial native bitmap */ | 441 | /* Draw a partial native bitmap */ |
448 | void ICODE_ATTR lcd_bitmap_transparent_part(const fb_data *src, int src_x, | 442 | void ICODE_ATTR lcd_bitmap_transparent_part(const fb_data *src, int src_x, |
449 | int src_y, int stride, int x, | 443 | int src_y, int stride, int x, |
@@ -524,11 +518,3 @@ void ICODE_ATTR lcd_bitmap_transparent_part(const fb_data *src, int src_x, | |||
524 | } | 518 | } |
525 | while (dst < dst_end); | 519 | while (dst < dst_end); |
526 | } | 520 | } |
527 | |||
528 | /* Draw a full native bitmap with a transparent color */ | ||
529 | void lcd_bitmap_transparent(const fb_data *src, int x, int y, | ||
530 | int width, int height) | ||
531 | { | ||
532 | lcd_bitmap_transparent_part(src, 0, 0, | ||
533 | STRIDE(SCREEN_MAIN, width, height), x, y, width, height); | ||
534 | } | ||