lv_display_set_physical_resolution() function
It's not mandatory to use the whole display for LVGL, however in some cases physical resolution is important. For example the touchpad still sees whole resolution and the values needs to be converted to the active LVGL display area.
Arguments
hor_res
the new physical horizontal resolution, or -1 to assume it's the same as the normal hor. res.
ver_res
the new physical vertical resolution, or -1 to assume it's the same as the normal hor. res.