diff --git a/fs/mongoose-os.jpg b/fs/mongoose-os.jpg deleted file mode 100755 index b613a1c..0000000 Binary files a/fs/mongoose-os.jpg and /dev/null differ diff --git a/fs/mongoose-os.png b/fs/mongoose-os.png new file mode 100644 index 0000000..125e148 Binary files /dev/null and b/fs/mongoose-os.png differ diff --git a/fs/screen_main.json b/fs/screen_main.json index 713eed5..521da4c 100644 --- a/fs/screen_main.json +++ b/fs/screen_main.json @@ -23,12 +23,12 @@ }, { "name": "logo", - "x": 88, - "y": 48, - "w": 144, - "h": 144, + "x": 96, + "y": 61, + "w": 128, + "h": 98, "type": 1, - "img": "/mongoose-os.jpg" + "img": "/mongoose-os.png" } ] } diff --git a/src/widget_default.c b/src/widget_default.c index e6bfb35..23b7f09 100644 --- a/src/widget_default.c +++ b/src/widget_default.c @@ -10,7 +10,7 @@ static void widget_default_draw(struct widget_t *w) { mgos_ili9341_drawRect(0, 0, w->w, w->h, ILI9341_GREEN); if (w->img) - mgos_ili9341_jpg_image(0, 0, 1, w->img, NULL, 0); + mgos_ili9341_png(0, 0, w->img); } void widget_default_ev(int ev, struct widget_t *w, void *ev_data) {