Move to PNG imagery
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 9.9 KiB |
BIN
fs/mongoose-os.png
Normal file
BIN
fs/mongoose-os.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.1 KiB |
@ -23,12 +23,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "logo",
|
"name": "logo",
|
||||||
"x": 88,
|
"x": 96,
|
||||||
"y": 48,
|
"y": 61,
|
||||||
"w": 144,
|
"w": 128,
|
||||||
"h": 144,
|
"h": 98,
|
||||||
"type": 1,
|
"type": 1,
|
||||||
"img": "/mongoose-os.jpg"
|
"img": "/mongoose-os.png"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ static void widget_default_draw(struct widget_t *w) {
|
|||||||
mgos_ili9341_drawRect(0, 0, w->w, w->h, ILI9341_GREEN);
|
mgos_ili9341_drawRect(0, 0, w->w, w->h, ILI9341_GREEN);
|
||||||
|
|
||||||
if (w->img)
|
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) {
|
void widget_default_ev(int ev, struct widget_t *w, void *ev_data) {
|
||||||
|
Reference in New Issue
Block a user