/* Get the full / physical horizontal resolution of a display  */
lv_coord_t lv_disp_get_physical_hor_res(lv_disp_t *disp)
/* Get the full / physical horizontal resolution of a display  */
lv_coord_t lv_disp_get_physical_hor_res(lv_disp_t *disp)
{
    if(disp == NULL) disp = lv_disp_get_default();
    if(disp == NULL) {
        return 0;
    }
    else {
        switch(disp->driver->rotated) {
            case LV_DISP_ROT_90:
            case LV_DISP_ROT_270:
                return disp->driver->physical_ver_res > 0 ? disp->driver->physical_ver_res : disp->driver->ver_res;
            default:
                return disp->driver->physical_hor_res > 0 ? disp->driver->physical_hor_res : disp->driver->hor_res;
        }
    }
}