From 658026e6267277b27d297c481728f74d160a8481 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 17 Jul 2020 10:31:31 -0400 Subject: [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 --- apps/plugins/snow.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'apps/plugins/snow.c') diff --git a/apps/plugins/snow.c b/apps/plugins/snow.c index f05d3c2a44..10b41c972b 100644 --- a/apps/plugins/snow.c +++ b/apps/plugins/snow.c @@ -22,15 +22,9 @@ #include "lib/mylcd.h" #include "lib/pluginlib_actions.h" -#ifdef HAVE_LCD_BITMAP #define NUM_PARTICLES (LCD_WIDTH * LCD_HEIGHT / 72) #define SNOW_HEIGHT LCD_HEIGHT #define SNOW_WIDTH LCD_WIDTH -#else -#define NUM_PARTICLES 10 -#define SNOW_HEIGHT 14 -#define SNOW_WIDTH 20 -#endif static const struct button_mapping *plugin_contexts[] = { pla_main_ctx }; @@ -40,7 +34,6 @@ static const struct button_mapping *plugin_contexts[] = { pla_main_ctx }; static short particles[NUM_PARTICLES][2]; -#ifdef HAVE_LCD_BITMAP #if LCD_WIDTH >= 160 #define FLAKE_WIDTH 5 static const unsigned char flake[] = {0x0a,0x04,0x1f,0x04,0x0a}; @@ -48,7 +41,6 @@ static const unsigned char flake[] = {0x0a,0x04,0x1f,0x04,0x0a}; #define FLAKE_WIDTH 3 static const unsigned char flake[] = {0x02,0x07,0x02}; #endif -#endif static bool particle_exists(int particle) { @@ -83,12 +75,8 @@ static void snow_move(void) for (i=0; ilcd_fillrect(particles[i][0],particles[i][1], FLAKE_WIDTH,FLAKE_WIDTH); -#else - pgfx_drawpixel(particles[i][0],particles[i][1]); -#endif mylcd_set_drawmode(DRMODE_SOLID); #ifdef HAVE_REMOTE_LCD if (particles[i][0] <= LCD_REMOTE_WIDTH @@ -116,12 +104,8 @@ static void snow_move(void) break; } if (particle_exists(i)) -#ifdef HAVE_LCD_BITMAP rb->lcd_mono_bitmap(flake,particles[i][0],particles[i][1], FLAKE_WIDTH,FLAKE_WIDTH); -#else - pgfx_drawpixel(particles[i][0],particles[i][1]); -#endif #ifdef HAVE_REMOTE_LCD if (particles[i][0] <= LCD_REMOTE_WIDTH && particles[i][1] <= LCD_REMOTE_HEIGHT) { -- cgit v1.2.3