diff options
Diffstat (limited to 'apps/plugins/mandelbrot.c')
-rw-r--r-- | apps/plugins/mandelbrot.c | 4 |
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); |