From 0c4f89370d05056faa789aa9cabcccc4e509fb9f Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 19 Jul 2020 19:38:45 -0400 Subject: [2/4] get rid of HAVE_LCD_CHARCELLS HAVE_LCD_BITMAP is now redundant. lcd_bitmap is always-on in features.txt so manual and lang strings don't have to change Change-Id: I08eeb20de48099ffc2dc23782711af368c2ec794 --- apps/plugins/logo.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'apps/plugins/logo.c') diff --git a/apps/plugins/logo.c b/apps/plugins/logo.c index e1c570b6a5..60bed3b826 100644 --- a/apps/plugins/logo.c +++ b/apps/plugins/logo.c @@ -19,7 +19,6 @@ * **************************************************************************/ #include "plugin.h" -#include "lib/playergfx.h" #include "lib/pluginlib_actions.h" /* this set the context to use with PLA */ @@ -81,19 +80,9 @@ enum plugin_status plugin_start(const void* parameter) { int y = (DISPLAY_HEIGHT / 2) - (LOGO_HEIGHT / 2); int dx; int dy; -#ifdef HAVE_LCD_CHARCELLS - int cpos = -1; - int old_cpos = -1; -#endif (void)parameter; -#ifdef HAVE_LCD_CHARCELLS - if (!pgfx_init(4, 2)) { - rb->splash(HZ*2, "Old LCD :("); - return PLUGIN_OK; - } -#endif rb->srand(*rb->current_tick); dx = rb->rand()%(2*RAND_SCALE+1) - RAND_SCALE; dy = rb->rand()%(2*RAND_SCALE+1) - RAND_SCALE; @@ -159,9 +148,6 @@ enum plugin_status plugin_start(const void* parameter) { switch (button) { case LP_QUIT: case LP_QUIT2: -#ifdef HAVE_LCD_CHARCELLS - pgfx_release(); -#endif return PLUGIN_OK; case LP_DEC_X: case LP_DEC_X_REPEAT: @@ -184,9 +170,6 @@ enum plugin_status plugin_start(const void* parameter) { default: if (rb->default_event_handler(button) == SYS_USB_CONNECTED) { -#ifdef HAVE_LCD_CHARCELLS - pgfx_release(); -#endif return PLUGIN_USB_CONNECTED; } break; -- cgit v1.2.3