diff options
author | Avamander <avamander@gmail.com> | 2020-10-15 22:16:01 +0300 |
---|---|---|
committer | Avamander <avamander@gmail.com> | 2020-10-15 22:16:08 +0300 |
commit | d4531d7bf393af56bf295fee399893802dfcac40 (patch) | |
tree | 941fa22400ceea5f4fb057a6387c705a26255452 /src/displayapp | |
parent | 82126edf887c5d2dc4829cbe7e0e70e91d1494cf (diff) |
Reordered the functions in Music.cpp correctly
Diffstat (limited to 'src/displayapp')
-rw-r--r-- | src/displayapp/screens/Music.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/displayapp/screens/Music.cpp b/src/displayapp/screens/Music.cpp index 82355e21..63e2e276 100644 --- a/src/displayapp/screens/Music.cpp +++ b/src/displayapp/screens/Music.cpp @@ -30,6 +30,17 @@ static void event_handler(lv_obj_t *obj, lv_event_t 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 * * TODO: Investigate Apple Media Service and AVRCPv1.6 support for seamless integration @@ -278,15 +289,4 @@ 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); }
\ No newline at end of file |