lvgl / lv_demos

Examples, tutorials and applications for the LVGL embedded GUI library

Home Page:https://lvgl.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The screen size

zdp1994 opened this issue · comments

How to achieve screen size adaptation, Can Iset the size of the screen to a variable value obtained dynamically instead of a macro definition?

You can set it in the lv_disp_drv_t with the hor_res and ver_res fields. LV_HOR/VER_RES are only the maximal values.

See https://docs.lvgl.io/latest/en/html/porting/display.html#display-driver

commented

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

As there was no activity here for a while I suppose the issue is solved.

If it's not working feel free the comment here and reopen this issue.

commented

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.