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) |
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) * pixel packing doesn't really matter on a 8bit+ target. */ /* Draw a partial monochrome bitmap */ + +#if !defined(TOSHIBA_GIGABEAT_F) || defined(SIMULATOR) +static int fh = -1; +static int callcount = 0; void lcd_mono_bitmap_part(const unsigned char *src, int src_x, int src_y, int stride, int x, int y, int width, int height) ICODE_ATTR; @@ -616,7 +620,7 @@ void lcd_mono_bitmap_part(const unsigned char *src, int src_x, int src_y, } while (src < src_end); } - +#endif /* Draw a full monochrome bitmap */ void lcd_mono_bitmap(const unsigned char *src, int x, int y, int width, int height) { @@ -674,6 +678,7 @@ void lcd_bitmap(const fb_data *src, int x, int y, int width, int height) lcd_bitmap_part(src, 0, 0, width, x, y, width, height); } +#if !defined(TOSHIBA_GIGABEAT_F) || defined(SIMULATOR) /* Draw a partial native bitmap */ void lcd_bitmap_transparent_part(const fb_data *src, int src_x, int src_y, 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, } while (dst < dst_end); } +#endif /* !defined(TOSHIBA_GIGABEAT_F) || defined(SIMULATOR) */ /* Draw a full native bitmap with a transparent color */ void lcd_bitmap_transparent(const fb_data *src, int x, int y, |