/* Check the driver configuration if it's double buffered (both  */
bool lv_disp_is_double_buf(lv_disp_t *disp)
/* Check the driver configuration if it's double buffered (both  */
bool lv_disp_is_double_buf(lv_disp_t *disp)
{
    if(disp->driver.buffer->buf1 && disp->driver.buffer->buf2)
        return true;
    else
        return false;
}