Move to PNG imagery

This commit is contained in:
Pim van Pelt
2017-11-26 21:04:58 +01:00
parent 13f6ed14f1
commit 25cad76432
4 changed files with 6 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

BIN
fs/mongoose-os.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@ -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"
}
]
}

View File

@ -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) {