mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 18:47:39 -04:00
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:
parent
12cc3cc47c
commit
df5c3e15e8
4 changed files with 169 additions and 186 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue