Reordered the functions in Music.cpp correctly
This commit is contained in:
parent
82126edf88
commit
d4531d7bf3
|
@ -29,6 +29,17 @@ static void event_handler(lv_obj_t *obj, lv_event_t event) {
|
||||||
screen->OnObjectEvent(obj, event);
|
screen->OnObjectEvent(obj, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Music control watchapp
|
* Music control watchapp
|
||||||
*
|
*
|
||||||
|
@ -279,14 +290,3 @@ bool Music::OnTouchEvent(Pinetime::Applications::TouchEvents event) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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