mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
xcb/x11: place SHM picture correctly
This commit is contained in:
parent
d321530ac5
commit
9223f0d82a
@ -102,8 +102,9 @@ static void Display (vout_display_t *vd, picture_t *pic)
|
||||
/* y */ sys->fmt.i_y_offset,
|
||||
/* width */ sys->fmt.i_visible_width,
|
||||
/* height */ sys->fmt.i_visible_height,
|
||||
0, 0, sys->depth, XCB_IMAGE_FORMAT_Z_PIXMAP,
|
||||
0, segment, buf->offset);
|
||||
sys->place.x, sys->place.y, sys->depth,
|
||||
XCB_IMAGE_FORMAT_Z_PIXMAP, 0,
|
||||
segment, buf->offset);
|
||||
else {
|
||||
const size_t offset = sys->fmt.i_y_offset * pic->p->i_pitch;
|
||||
const unsigned lines = pic->p->i_lines - sys->fmt.i_y_offset;
|
||||
|
Loading…
Reference in New Issue
Block a user