fix deprecated

This commit is contained in:
MX 2024-06-06 01:34:35 +03:00
parent 8938cbfc6e
commit 8dad9468d5
No known key found for this signature in database
GPG key ID: 7CCC66B7DBDD1C83

View file

@ -545,7 +545,7 @@ void canvas_draw_icon_bitmap(
x += canvas->offset_x;
y += canvas->offset_y;
uint8_t* icon_data = NULL;
compress_icon_decode(canvas->compress_icon, icon_get_data(icon), &icon_data);
compress_icon_decode(canvas->compress_icon, icon_get_frame_data(icon, 0), &icon_data);
u8g2_DrawXBM(&canvas->fb, x, y, w, h, icon_data);
}