/* Temporarily enable and disable the invalidation of the display.  */
void lv_disp_enable_invalidation(lv_disp_t *disp, bool en)
/* Temporarily enable and disable the invalidation of the display.  */
void lv_disp_enable_invalidation(lv_disp_t *disp, bool en)
{
    if(!disp) disp = lv_disp_get_default();
    if(!disp) {
        LV_LOG_WARN("no display registered");
        return;
    }
    disp->inv_en_cnt += en ? 1 : -1;
}