diff options
author | Greg White <gwhite@rockbox.org> | 2007-01-15 13:07:47 +0000 |
---|---|---|
committer | Greg White <gwhite@rockbox.org> | 2007-01-15 13:07:47 +0000 |
commit | 69bb4362239e566d7232854ab65df3d0a5758179 (patch) | |
tree | a5abc6ff74e93d369dab5de0409dcc4bcfda5116 /firmware/drivers | |
parent | 724641268ea5154ee2d403252fa5ae13a78d46ca (diff) | |
download | rockbox-69bb4362239e566d7232854ab65df3d0a5758179.tar.gz rockbox-69bb4362239e566d7232854ab65df3d0a5758179.zip |
Optimize transparent blit; optimize DRMODE_SOLID for mono bitmaps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12015 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/lcd-16bit.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c index b8075b216b..1a08a6e519 100644 --- a/firmware/drivers/lcd-16bit.c +++ b/firmware/drivers/lcd-16bit.c | |||
@@ -545,6 +545,10 @@ void lcd_fillrect(int x, int y, int width, int height) | |||
545 | * pixel packing doesn't really matter on a 8bit+ target. */ | 545 | * pixel packing doesn't really matter on a 8bit+ target. */ |
546 | 546 | ||
547 | /* Draw a partial monochrome bitmap */ | 547 | /* Draw a partial monochrome bitmap */ |
548 | |||
549 | #if !defined(TOSHIBA_GIGABEAT_F) || defined(SIMULATOR) | ||
550 | static int fh = -1; | ||
551 | static int callcount = 0; | ||
548 | void lcd_mono_bitmap_part(const unsigned char *src, int src_x, int src_y, | 552 | void lcd_mono_bitmap_part(const unsigned char *src, int src_x, int src_y, |
549 | int stride, int x, int y, int width, int height) | 553 | int stride, int x, int y, int width, int height) |
550 | ICODE_ATTR; | 554 | ICODE_ATTR; |
@@ -616,7 +620,7 @@ void lcd_mono_bitmap_part(const unsigned char *src, int src_x, int src_y, | |||
616 | } | 620 | } |
617 | while (src < src_end); | 621 | while (src < src_end); |
618 | } | 622 | } |
619 | 623 | #endif | |
620 | /* Draw a full monochrome bitmap */ | 624 | /* Draw a full monochrome bitmap */ |
621 | void lcd_mono_bitmap(const unsigned char *src, int x, int y, int width, int height) | 625 | void lcd_mono_bitmap(const unsigned char *src, int x, int y, int width, int height) |
622 | { | 626 | { |
@@ -674,6 +678,7 @@ void lcd_bitmap(const fb_data *src, int x, int y, int width, int height) | |||
674 | lcd_bitmap_part(src, 0, 0, width, x, y, width, height); | 678 | lcd_bitmap_part(src, 0, 0, width, x, y, width, height); |
675 | } | 679 | } |
676 | 680 | ||
681 | #if !defined(TOSHIBA_GIGABEAT_F) || defined(SIMULATOR) | ||
677 | /* Draw a partial native bitmap */ | 682 | /* Draw a partial native bitmap */ |
678 | void lcd_bitmap_transparent_part(const fb_data *src, int src_x, int src_y, | 683 | void lcd_bitmap_transparent_part(const fb_data *src, int src_x, int src_y, |
679 | int stride, int x, int y, int width, | 684 | int stride, int x, int y, int width, |
@@ -724,6 +729,7 @@ void lcd_bitmap_transparent_part(const fb_data *src, int src_x, int src_y, | |||
724 | } | 729 | } |
725 | while (dst < dst_end); | 730 | while (dst < dst_end); |
726 | } | 731 | } |
732 | #endif /* !defined(TOSHIBA_GIGABEAT_F) || defined(SIMULATOR) */ | ||
727 | 733 | ||
728 | /* Draw a full native bitmap with a transparent color */ | 734 | /* Draw a full native bitmap with a transparent color */ |
729 | void lcd_bitmap_transparent(const fb_data *src, int x, int y, | 735 | void lcd_bitmap_transparent(const fb_data *src, int x, int y, |