diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-07-27 19:58:49 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-07-27 19:58:49 +0000 |
| commit | 00866dbf86ad9fe3a65c94d2f7b5b0052a7e2738 (patch) | |
| tree | 912a697982bba1d34ef484a574fe57695cbbcf57 /apps/plugins/lib/gray.h | |
| parent | 988ea2cffc36d891d5b4752484c741a98eddede3 (diff) | |
| download | rockbox-00866dbf86ad9fe3a65c94d2f7b5b0052a7e2738.zip rockbox-00866dbf86ad9fe3a65c94d2f7b5b0052a7e2738.tar.gz rockbox-00866dbf86ad9fe3a65c94d2f7b5b0052a7e2738.tar.bz2 rockbox-00866dbf86ad9fe3a65c94d2f7b5b0052a7e2738.tar.xz | |
Grayscale library: (1) Ported to iriver H1x0. Experiments have shown that the intended 49-shade mode isn't possible due to interference between the internal greylevel generation of the LCD and external pixel flipping, so the lib allows 33 shades as on the Archos. The current implementation wastes RAM by not switching the LCD to b&w mode and simply using colours 0 and 3 only. However, this allows to show a partial greyscale overlay and normal 4-shade graphics in parallel. (2) Converted all asm blocks to use symbolic parameters. (3) Properly marked asm input parameters that are changed within the block as in-out and feed them from a temp variable where necessary. (4) Screenshot is not yet working on H1x0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7244 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/gray.h')
| -rw-r--r-- | apps/plugins/lib/gray.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/plugins/lib/gray.h b/apps/plugins/lib/gray.h index 8abf7bc..09ae73b 100644 --- a/apps/plugins/lib/gray.h +++ b/apps/plugins/lib/gray.h @@ -113,8 +113,6 @@ void gray_ub_scroll_down(int count); #define _PBLOCK_EXP 2 #endif #define _PBLOCK (1 << _PBLOCK_EXP) -#define _MAX_DEPTH (32 / LCD_DEPTH) -#define _LEVEL_FAC ((1 << LCD_DEPTH) - 1) /* flag definitions */ #define _GRAY_RUNNING 0x0001 /* greyscale overlay is running */ |