static void Display(vout_display_t *vd, picture_t *pic) { vout_display_sys_t *sys = vd->sys; xcb_connection_t *conn = sys->conn; xcb_void_cookie_t ck; vlc_xcb_Manage(vd, conn); /* Copy the scaled picture into the target picture, in other words * copy the rendered pixmap into the window. */ ck = xcb_render_composite_checked(conn, XCB_RENDER_PICT_OP_SRC, sys->picture.scale, XCB_RENDER_PICTURE_NONE, sys->picture.dest, 0, 0, 0, 0, 0, 0, vd->cfg->display.width, vd->cfg->display.height); xcb_generic_error_t *e = xcb_request_check(conn, ck); if (e != NULL) { /* Not all errors will be detected here. */ msg_Dbg(vd, "%s: RENDER error %d", "cannot composite", e->error_code); free(e); } (void) pic; }
static void Manage (vout_display_t *vd) { vout_display_sys_t *sys = vd->sys; vlc_xcb_Manage(vd, sys->conn, &sys->visible); }