summaryrefslogtreecommitdiff
path: root/apps/plugins/grayscale.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/grayscale.c')
-rw-r--r--apps/plugins/grayscale.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/grayscale.c b/apps/plugins/grayscale.c
index 3b86304123..cdb3f880e5 100644
--- a/apps/plugins/grayscale.c
+++ b/apps/plugins/grayscale.c
@@ -154,11 +154,11 @@ int main(void)
154 32 bitplanes for 33 shades of grey. 154 32 bitplanes for 33 shades of grey.
155 H1x0: 160 pixels wide, 30 rows (120 pixels) high, (try to) reserve 155 H1x0: 160 pixels wide, 30 rows (120 pixels) high, (try to) reserve
156 32 bitplanes for 33 shades of grey. */ 156 32 bitplanes for 33 shades of grey. */
157 shades = gray_init(rb, gbuf, gbuf_size, true, LCD_WIDTH, 157 shades = gray_init(rb, gbuf, gbuf_size, true, LCD_WIDTH, GFX_HEIGHT/8,
158 (GFX_HEIGHT*LCD_DEPTH/8), 32, NULL) + 1; 158 32, NULL) + 1;
159 159
160 /* place greyscale overlay 1 row down */ 160 /* place greyscale overlay 1 row down */
161 gray_set_position(0, LCD_DEPTH); 161 gray_set_position(0, 1);
162 162
163 rb->snprintf(pbuf, sizeof(pbuf), "Shades: %d", shades); 163 rb->snprintf(pbuf, sizeof(pbuf), "Shades: %d", shades);
164 rb->lcd_puts(0, 0, pbuf); 164 rb->lcd_puts(0, 0, pbuf);