1
0
Fork 0
forked from len0rd/rockbox

Greyscale library: * Introduced some extra macros dealing with block size, allowing to write some parts with less #ifdefing. * Optimised grey_update_rect() for horizontally packed LCDs, and unbuffered scrolling.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16050 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2008-01-10 22:51:33 +00:00
parent 12cc3cc47c
commit df5c3e15e8
4 changed files with 169 additions and 186 deletions

View file

@ -121,15 +121,18 @@ void grey_ub_scroll_down(int count);
#endif
#if LCD_PIXELFORMAT == HORIZONTAL_PACKING
#define _GREY_X_ADVANCE 1
#define _GREY_BSHIFT 0
#else
#if LCD_DEPTH == 1
#define _GREY_X_ADVANCE 8
#define _GREY_BSHIFT 3
#elif LCD_DEPTH == 2
#define _GREY_X_ADVANCE 4
#define _GREY_BSHIFT 2
#endif
#endif /* LCD_PIXELFORMAT */
#define _GREY_BSIZE (1<<_GREY_BSHIFT)
#define _GREY_BMASK (_GREY_BSIZE-1)
/* The greyscale buffer management structure */
struct _grey_info
{