/* Get the vertical offset from the full / physical display  */
lv_coord_t lv_disp_get_offset_y(lv_disp_t *disp)
/* Get the vertical offset from the full / physical display  */
lv_coord_t lv_disp_get_offset_y(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:
                return disp->driver->offset_x;
            case LV_DISP_ROT_180:
                return lv_disp_get_physical_ver_res(disp) - disp->driver->offset_y;
            case LV_DISP_ROT_270:
                return lv_disp_get_physical_ver_res(disp) - disp->driver->offset_x;
            default:
                return disp->driver->offset_y;
        }
    }
}