summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/gray.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-09-30 20:10:27 +0000
committerJens Arnold <amiconn@rockbox.org>2005-09-30 20:10:27 +0000
commit1a40e109333b8206140594fce746f7972a4d0d86 (patch)
treea4f0589682ae4f8c894222b7691efebd989d763f /apps/plugins/lib/gray.h
parent8b9c64f19db3abf8872b8dd85ea8ee1343f322e3 (diff)
H1x0: Changed lcd_blit() and the grayscale library to use the same internal format as on archos (1bpp). While the slowdown of the ISR is minimal (the intermediate buffers are in IRAM), the planar grayscale buffer takes only half the space for a given depth, and gray_update[_rect]() and unbuffered drawing/scrolling are faster because less data needs to be moved. It should also make porting of video.rock somewhat easier. * Archos recorders, Ondios: Some slight optimisations of the grayscale library.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7571 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/gray.h')
-rw-r--r--apps/plugins/lib/gray.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/plugins/lib/gray.h b/apps/plugins/lib/gray.h
index 09ae73b8a6..f1007984b5 100644
--- a/apps/plugins/lib/gray.h
+++ b/apps/plugins/lib/gray.h
@@ -107,11 +107,7 @@ void gray_ub_scroll_down(int count);
/*** Internal stuff ***/
-#if LCD_DEPTH == 1
#define _PBLOCK_EXP 3
-#elif LCD_DEPTH == 2
-#define _PBLOCK_EXP 2
-#endif
#define _PBLOCK (1 << _PBLOCK_EXP)
/* flag definitions */