mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-12-25 02:32:41 +03:00
Added lv_img_set_src_arr that does better type checking when drawing images from arrays
This commit is contained in:
parent
2b9906184b
commit
82126edf88
@ -278,4 +278,15 @@ bool Music::OnTouchEvent(Pinetime::Applications::TouchEvents event) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the pixel array to display by the image
|
||||
* This just calls lv_img_set_src but adds type safety
|
||||
*
|
||||
* @param img pointer to an image object
|
||||
* @param data the image array
|
||||
*/
|
||||
inline void lv_img_set_src_arr(lv_obj_t *img, const lv_img_dsc_t *src_img) {
|
||||
lv_img_set_src(img, src_img);
|
||||
}
|
Loading…
Reference in New Issue
Block a user