lvgl / lv_demos

Examples, tutorials and applications for the LVGL embedded GUI library
https://lvgl.io
492 stars 366 forks source link

The screen size #73

Closed zdp1994 closed 4 years ago

zdp1994 commented 4 years ago

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

kisvegabor commented 4 years ago

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

stale[bot] commented 4 years ago

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.

kisvegabor commented 4 years ago

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.

stale[bot] commented 4 years ago

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.