/* Pop (delete) the last 'num' invalidated areas from the buffer  */
void lv_disp_pop_from_inv_buf(lv_disp_t *disp, uint16_t num)
/* Pop (delete) the last 'num' invalidated areas from the buffer  */
void lv_disp_pop_from_inv_buf(lv_disp_t *disp, uint16_t num)
{
    if(disp->inv_p < num)
        disp->inv_p = 0;
    else
        disp->inv_p -= num;
}