1
0
Fork 0
forked from len0rd/rockbox

Speed up mono bitmap drawing on horizontally packed greyscale targets (greyscale iPods). Average speedup is 80% on PP5002, and 55% on PP502x. * Simplify mono bitmap drawing in the 16 bit driver and the greylib a bit, also giving a slight speedup (3% on PP502x, 1.5% on coldfire).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21163 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2009-06-01 21:28:03 +00:00
parent aa7d43f7a6
commit c1d27d105c
3 changed files with 126 additions and 32 deletions

View file

@ -752,6 +752,7 @@ void ICODE_ATTR lcd_mono_bitmap_part(const unsigned char *src, int src_x,
src_y &= 7;
src_end = src + width;
dst = LCDADDR(current_vp->x + x, current_vp->y + y);
dst_end = dst + height * LCD_WIDTH;
if (drmode & DRMODE_INVERSEVID)
{
@ -767,8 +768,6 @@ void ICODE_ATTR lcd_mono_bitmap_part(const unsigned char *src, int src_x,
int fg, bg;
long bo;
dst_end = dst_col + height * LCD_WIDTH;
#define UPDATE_SRC do { \
data >>= 1; \
if (data == 0x001) { \