diff options
Diffstat (limited to 'apps/plugins/zxbox/zxbox.c')
-rw-r--r-- | apps/plugins/zxbox/zxbox.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/apps/plugins/zxbox/zxbox.c b/apps/plugins/zxbox/zxbox.c index c7e3d0a5db..ebb689ce9c 100644 --- a/apps/plugins/zxbox/zxbox.c +++ b/apps/plugins/zxbox/zxbox.c | |||
@@ -50,7 +50,7 @@ unsigned char image_array [ HEIGHT * WIDTH ]; | |||
50 | 50 | ||
51 | static int previous_state; | 51 | static int previous_state; |
52 | 52 | ||
53 | #ifdef USE_GRAY | 53 | #ifdef USE_GREY |
54 | static unsigned char *gbuf; | 54 | static unsigned char *gbuf; |
55 | static size_t gbuf_size = 0; | 55 | static size_t gbuf_size = 0; |
56 | #endif | 56 | #endif |
@@ -69,17 +69,17 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
69 | 69 | ||
70 | sp_init(); | 70 | sp_init(); |
71 | 71 | ||
72 | #ifdef USE_GRAY | 72 | #ifdef USE_GREY |
73 | /* get the remainder of the plugin buffer */ | 73 | /* get the remainder of the plugin buffer */ |
74 | gbuf = (unsigned char *) rb->plugin_get_buffer(&gbuf_size); | 74 | gbuf = (unsigned char *) rb->plugin_get_buffer(&gbuf_size); |
75 | #ifdef USE_BUFFERED_GRAY | 75 | #ifdef USE_BUFFERED_GREY |
76 | gray_init(rb, gbuf, gbuf_size, true, LCD_WIDTH, LCD_HEIGHT, 15, 0, NULL); | 76 | grey_init(rb, gbuf, gbuf_size, true, LCD_WIDTH, LCD_HEIGHT, NULL); |
77 | #else | 77 | #else |
78 | gray_init(rb, gbuf, gbuf_size, false, LCD_WIDTH, LCD_HEIGHT, 15, 0, NULL); | 78 | grey_init(rb, gbuf, gbuf_size, false, LCD_WIDTH, LCD_HEIGHT, NULL); |
79 | #endif /* USE_BUFFERED_GRAY */ | 79 | #endif /* USE_BUFFERED_GREY */ |
80 | /* switch on grayscale overlay */ | 80 | /* switch on greyscale overlay */ |
81 | gray_show(true); | 81 | grey_show(true); |
82 | #endif /* USE_GRAY */ | 82 | #endif /* USE_GREY */ |
83 | 83 | ||
84 | 84 | ||
85 | #if defined(HAVE_ADJUSTABLE_CPU_FREQ) | 85 | #if defined(HAVE_ADJUSTABLE_CPU_FREQ) |
@@ -102,9 +102,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
102 | rb->cpu_boost(false); | 102 | rb->cpu_boost(false); |
103 | #endif | 103 | #endif |
104 | 104 | ||
105 | #ifdef USE_GRAY | 105 | #ifdef USE_GREY |
106 | gray_show(false); | 106 | grey_show(false); |
107 | gray_release(); | 107 | grey_release(); |
108 | #endif | 108 | #endif |
109 | 109 | ||
110 | #if CONFIG_CODEC == SWCODEC && !defined SIMULATOR | 110 | #if CONFIG_CODEC == SWCODEC && !defined SIMULATOR |
@@ -133,8 +133,8 @@ void spkb_process_events( int evenframe ) | |||
133 | rb->cpu_boost(false); | 133 | rb->cpu_boost(false); |
134 | #endif | 134 | #endif |
135 | exit_requested=1; | 135 | exit_requested=1; |
136 | #ifdef USE_GRAY | 136 | #ifdef USE_GREY |
137 | gray_show(false); | 137 | grey_show(false); |
138 | #endif | 138 | #endif |
139 | return; | 139 | return; |
140 | } | 140 | } |
@@ -151,8 +151,8 @@ void spkb_process_events( int evenframe ) | |||
151 | rb->cpu_boost(false); | 151 | rb->cpu_boost(false); |
152 | #endif | 152 | #endif |
153 | exit_requested=1; | 153 | exit_requested=1; |
154 | #ifdef USE_GRAY | 154 | #ifdef USE_GREY |
155 | gray_show(false); | 155 | grey_show(false); |
156 | #endif | 156 | #endif |
157 | return; | 157 | return; |
158 | } | 158 | } |