fix:replace lv_image_get_zoom with lv_image_get_scale (#5383)

This commit is contained in:
lhdjply
2024-01-18 21:41:11 +08:00
committed by GitHub
parent 0a0f4b484d
commit 6528e38ed0

View File

@@ -807,7 +807,7 @@ static void spectrum_draw_event_cb(lv_event_t * e)
#else
int32_t r_in = 160;
#endif
r_in = (r_in * lv_image_get_zoom(album_image_obj)) >> 8;
r_in = (r_in * lv_image_get_scale(album_image_obj)) >> 8;
for(i = 0; i < BAR_CNT; i++) r[i] = r_in + min_a + 77;
uint32_t s;