summaryrefslogtreecommitdiff
path: root/apps/plugins/mandelbrot.c
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/mandelbrot.c
parent8b9c64f19db3abf8872b8dd85ea8ee1343f322e3 (diff)
downloadrockbox-1a40e109333b8206140594fce746f7972a4d0d86.tar.gz
rockbox-1a40e109333b8206140594fce746f7972a4d0d86.zip
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/mandelbrot.c')
-rw-r--r--apps/plugins/mandelbrot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/mandelbrot.c b/apps/plugins/mandelbrot.c
index d5fb0f2b04..88f48d3f2b 100644
--- a/apps/plugins/mandelbrot.c
+++ b/apps/plugins/mandelbrot.c
@@ -353,8 +353,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
353 353
354 /* initialize the grayscale buffer: 354 /* initialize the grayscale buffer:
355 * 8 bitplanes for 9 shades of gray.*/ 355 * 8 bitplanes for 9 shades of gray.*/
356 grayscales = gray_init(rb, gbuf, gbuf_size, false, LCD_WIDTH, 356 grayscales = gray_init(rb, gbuf, gbuf_size, false, LCD_WIDTH, LCD_HEIGHT/8,
357 (LCD_HEIGHT*LCD_DEPTH/8), 8, NULL) + 1; 357 8, NULL) + 1;
358 if (grayscales != 9) { 358 if (grayscales != 9) {
359 rb->snprintf(buff, sizeof(buff), "%d", grayscales); 359 rb->snprintf(buff, sizeof(buff), "%d", grayscales);
360 rb->lcd_puts(0, 1, buff); 360 rb->lcd_puts(0, 1, buff);