diff --git a/fs/flowers.dif b/fs/flowers.dif new file mode 100644 index 0000000..a6f9080 Binary files /dev/null and b/fs/flowers.dif differ diff --git a/fs/flowers.png b/fs/flowers.png deleted file mode 100644 index e4f460e..0000000 Binary files a/fs/flowers.png and /dev/null differ diff --git a/fs/mongoose-os.dif b/fs/mongoose-os.dif new file mode 100644 index 0000000..da6cda8 Binary files /dev/null and b/fs/mongoose-os.dif differ diff --git a/fs/mongoose-os.png b/fs/mongoose-os.png deleted file mode 100644 index 125e148..0000000 Binary files a/fs/mongoose-os.png and /dev/null differ diff --git a/fs/screen_main.json b/fs/screen_main.json index 69937b3..94c0451 100644 --- a/fs/screen_main.json +++ b/fs/screen_main.json @@ -37,7 +37,7 @@ "w": 128, "h": 98, "type": 1, - "img": "/mongoose-os.png" + "img": "/mongoose-os.dif" }, { "name": "flowers", @@ -46,7 +46,7 @@ "w": 106, "h": 98, "type": 1, - "img": "/flowers.png" + "img": "/flowers.dif" } ] } diff --git a/src/widget_default.c b/src/widget_default.c index 2faf360..a4ce5d8 100644 --- a/src/widget_default.c +++ b/src/widget_default.c @@ -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;