The demo animation does not match the lcd(ips, st7789)

I build in the lvgl demo into my ips(st7789) lcd, but the animation is too large so that the lcd only can catch parts of animations , so how should I do the animation can fit well the lcd? like the configurations etc.

Hi,

Have you set her_res and ver_res in lv_disp_drv_t correctly?

i come to lv_conf_template.h and make the define changed like the image A shows, and this is matched with the esp_idf resolution configuration(image B)

;

It seems like a square display. So shouldn’t hor. res. and ver. res be equal?

yes, thanks, I modify this part and also enable the file in user_setup_selection.h and then it works