summaryrefslogtreecommitdiff
path: root/apps/plugins/plasma.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/plasma.c')
-rw-r--r--apps/plugins/plasma.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/plugins/plasma.c b/apps/plugins/plasma.c
index 76c54122e0..4f5fc39eb2 100644
--- a/apps/plugins/plasma.c
+++ b/apps/plugins/plasma.c
@@ -28,7 +28,7 @@
28#ifdef HAVE_LCD_BITMAP 28#ifdef HAVE_LCD_BITMAP
29 29
30#ifndef HAVE_LCD_COLOR 30#ifndef HAVE_LCD_COLOR
31#include "gray.h" 31#include "grey.h"
32#endif 32#endif
33#include "fixedpoint.h" 33#include "fixedpoint.h"
34 34
@@ -45,7 +45,7 @@ static int redphase = 0, greenphase = 50, bluephase = 100;
45 /* lower chance of gray at regular intervals */ 45 /* lower chance of gray at regular intervals */
46#else 46#else
47static unsigned char colours[256]; /* Smooth transition of shades */ 47static unsigned char colours[256]; /* Smooth transition of shades */
48static unsigned char graybuffer[LCD_HEIGHT*LCD_WIDTH]; /* off screen buffer */ 48static unsigned char greybuffer[LCD_HEIGHT*LCD_WIDTH]; /* off screen buffer */
49static unsigned char *gbuf; 49static unsigned char *gbuf;
50static size_t gbuf_size = 0; 50static size_t gbuf_size = 0;
51#endif 51#endif
@@ -171,7 +171,7 @@ void cleanup(void *parameter)
171 (void)parameter; 171 (void)parameter;
172 172
173#ifndef HAVE_LCD_COLOR 173#ifndef HAVE_LCD_COLOR
174 gray_release(); 174 grey_release();
175#endif 175#endif
176 /* Turn on backlight timeout (revert to settings) */ 176 /* Turn on backlight timeout (revert to settings) */
177 backlight_use_settings(rb); /* backlight control in lib/helper.c */ 177 backlight_use_settings(rb); /* backlight control in lib/helper.c */
@@ -203,9 +203,9 @@ int main(void)
203 /* get the remainder of the plugin buffer */ 203 /* get the remainder of the plugin buffer */
204 gbuf = (unsigned char *) rb->plugin_get_buffer(&gbuf_size); 204 gbuf = (unsigned char *) rb->plugin_get_buffer(&gbuf_size);
205 205
206 gray_init(rb, gbuf, gbuf_size, false, LCD_WIDTH, LCD_HEIGHT, 32, 2<<8, NULL); 206 grey_init(rb, gbuf, gbuf_size, false, LCD_WIDTH, LCD_HEIGHT, NULL);
207 /* switch on grayscale overlay */ 207 /* switch on greyscale overlay */
208 gray_show(true); 208 grey_show(true);
209#endif 209#endif
210 sp1 = 4; 210 sp1 = 4;
211 sp2 = 2; 211 sp2 = 2;
@@ -218,7 +218,7 @@ int main(void)
218 shades_generate(time++); /* dynamically */ 218 shades_generate(time++); /* dynamically */
219 ptr = rb->lcd_framebuffer; 219 ptr = rb->lcd_framebuffer;
220#else 220#else
221 ptr = graybuffer; 221 ptr = greybuffer;
222#endif 222#endif
223 t1=p1; 223 t1=p1;
224 t2=p2; 224 t2=p2;
@@ -245,7 +245,7 @@ int main(void)
245#ifdef HAVE_LCD_COLOR 245#ifdef HAVE_LCD_COLOR
246 rb->lcd_update(); 246 rb->lcd_update();
247#else 247#else
248 gray_ub_gray_bitmap(graybuffer, 0, 0, LCD_WIDTH, LCD_HEIGHT); 248 grey_ub_gray_bitmap(greybuffer, 0, 0, LCD_WIDTH, LCD_HEIGHT);
249#endif 249#endif
250 250
251 button = rb->button_get(false); 251 button = rb->button_get(false);