[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
This commit is contained in:
Solomon Peachy 2020-07-17 10:31:31 -04:00
parent 8cb555460f
commit 658026e626
240 changed files with 288 additions and 1759 deletions

View file

@ -17,6 +17,4 @@
#endif
checkwps.c
#ifdef HAVE_LCD_BITMAP
../../apps/recorder/bmp.c
#endif

View file

@ -181,9 +181,7 @@ struct screen screens[NB_SCREENS] =
#endif
.getwidth = getwidth,
.getheight = getheight,
#ifdef HAVE_LCD_BITMAP
.getuifont = getuifont,
#endif
#if LCD_DEPTH > 1
.get_foreground=dummy_func2,
.get_background=dummy_func2,
@ -209,7 +207,6 @@ struct screen screens[NB_SCREENS] =
#endif
};
#ifdef HAVE_LCD_BITMAP
void screen_clear_area(struct screen * display, int xstart, int ystart,
int width, int height)
{
@ -217,7 +214,6 @@ void screen_clear_area(struct screen * display, int xstart, int ystart,
display->fillrect(xstart, ystart, width, height);
display->set_drawmode(DRMODE_SOLID);
}
#endif
#if CONFIG_TUNER
bool radio_hardware_present(void)
@ -226,7 +222,6 @@ bool radio_hardware_present(void)
}
#endif
#ifdef HAVE_LCD_BITMAP
static int loaded_fonts = 0;
static struct font _font;
int font_load(const char *path)
@ -235,7 +230,7 @@ int font_load(const char *path)
loaded_fonts++;
return id;
}
void font_unload(int font_id)
{
(void)font_id;
@ -245,7 +240,6 @@ struct font* font_get(int font)
{
return &_font;
}
#endif
/* This is no longer defined in ROCKBOX builds so just use a huge value */
#define SKIN_BUFFER_SIZE (200*1024)