mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 15:38:35 -07:00
fix deprecated
This commit is contained in:
@@ -545,7 +545,7 @@ void canvas_draw_icon_bitmap(
|
|||||||
x += canvas->offset_x;
|
x += canvas->offset_x;
|
||||||
y += canvas->offset_y;
|
y += canvas->offset_y;
|
||||||
uint8_t* icon_data = NULL;
|
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);
|
u8g2_DrawXBM(&canvas->fb, x, y, w, h, icon_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user