Change images to DIFs for faster drawing

This commit is contained in:
Pim van Pelt
2017-12-02 12:22:14 +01:00
parent ff84c5aa4b
commit 4e1a9f4c2a
6 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ static void widget_default_draw(struct widget_t *w, uint16_t color) {
if (w->img) {
mgos_ili9341_set_fgcolor565(ILI9341_BLUE);
mgos_ili9341_drawRoundRect(0, 0, w->w, w->h, 16);
mgos_ili9341_drawDIF(0, 0, w->img);
} else if (w->label) {
int16_t text_width, text_height;
uint16_t x, y;