diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-17 10:31:31 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 21:20:13 +0000 |
commit | 658026e6267277b27d297c481728f74d160a8481 (patch) | |
tree | 915a9d2bb48469bdd5b9127dc19a61f230721a6c /apps/plugins/test_viewports.c | |
parent | 8cb555460ff79e636a7907fb2589e16db98c8600 (diff) | |
download | rockbox-658026e6267277b27d297c481728f74d160a8481.tar.gz rockbox-658026e6267277b27d297c481728f74d160a8481.zip |
[4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice.
Note: I left behind lcd_bitmap in features.txt, because removing it
would require considerable work in the manual and the translations.
Change-Id: Ia8ca7761f610d9332a0d22a7d189775fb15ec88a
Diffstat (limited to 'apps/plugins/test_viewports.c')
-rw-r--r-- | apps/plugins/test_viewports.c | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/apps/plugins/test_viewports.c b/apps/plugins/test_viewports.c index 9fc9caa451..465a832399 100644 --- a/apps/plugins/test_viewports.c +++ b/apps/plugins/test_viewports.c | |||
@@ -21,10 +21,6 @@ | |||
21 | 21 | ||
22 | #include "plugin.h" | 22 | #include "plugin.h" |
23 | 23 | ||
24 | |||
25 | |||
26 | #ifdef HAVE_LCD_BITMAP | ||
27 | |||
28 | #ifdef HAVE_LCD_COLOR | 24 | #ifdef HAVE_LCD_COLOR |
29 | #define BGCOLOR_1 LCD_RGBPACK(255,255,0) | 25 | #define BGCOLOR_1 LCD_RGBPACK(255,255,0) |
30 | #define BGCOLOR_2 LCD_RGBPACK(0,255,0) | 26 | #define BGCOLOR_2 LCD_RGBPACK(0,255,0) |
@@ -207,61 +203,3 @@ enum plugin_status plugin_start(const void* parameter) | |||
207 | 203 | ||
208 | return PLUGIN_OK; | 204 | return PLUGIN_OK; |
209 | } | 205 | } |
210 | |||
211 | |||
212 | #else | ||
213 | |||
214 | /* Charcell version of plugin */ | ||
215 | |||
216 | static struct viewport vp0 = | ||
217 | { | ||
218 | .x = 0, | ||
219 | .y = 0, | ||
220 | .width = 5, | ||
221 | .height = 1, | ||
222 | }; | ||
223 | |||
224 | static struct viewport vp1 = | ||
225 | { | ||
226 | .x = 6, | ||
227 | .y = 0, | ||
228 | .width = 5, | ||
229 | .height = 1, | ||
230 | }; | ||
231 | |||
232 | static struct viewport vp2 = | ||
233 | { | ||
234 | .x = 0, | ||
235 | .y = 1, | ||
236 | .width = LCD_WIDTH, | ||
237 | .height = 1, | ||
238 | }; | ||
239 | |||
240 | |||
241 | enum plugin_status plugin_start(const void* parameter) | ||
242 | { | ||
243 | (void)parameter; | ||
244 | |||
245 | rb->screens[SCREEN_MAIN]->set_viewport(&vp0); | ||
246 | rb->screens[SCREEN_MAIN]->clear_viewport(); | ||
247 | rb->screens[SCREEN_MAIN]->puts_scroll(0,0,"Rockbox"); | ||
248 | |||
249 | rb->screens[SCREEN_MAIN]->set_viewport(&vp1); | ||
250 | rb->screens[SCREEN_MAIN]->clear_viewport(); | ||
251 | rb->screens[SCREEN_MAIN]->puts_scroll(0,0,"Viewports"); | ||
252 | |||
253 | rb->screens[SCREEN_MAIN]->set_viewport(&vp2); | ||
254 | rb->screens[SCREEN_MAIN]->clear_viewport(); | ||
255 | rb->screens[SCREEN_MAIN]->puts_scroll(0,0,"Demonstration"); | ||
256 | |||
257 | rb->screens[SCREEN_MAIN]->update(); | ||
258 | |||
259 | rb->button_get(true); | ||
260 | |||
261 | /* Restore the default viewport */ | ||
262 | rb->screens[SCREEN_MAIN]->set_viewport(NULL); | ||
263 | |||
264 | return PLUGIN_OK; | ||
265 | } | ||
266 | |||
267 | #endif /* !HAVE_LCD_BITMAP */ | ||