diff options
Diffstat (limited to 'video/out/vo_x11.c')
-rw-r--r-- | video/out/vo_x11.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c index 98ebc7f6d1..58c709e471 100644 --- a/video/out/vo_x11.c +++ b/video/out/vo_x11.c @@ -419,8 +419,7 @@ static void Display_Image(struct priv *p, XImage *myximage, uint8_t *ImageData) static struct mp_image get_x_buffer(struct priv *p) { struct mp_image img = {0}; - img.w = img.width = p->image_width; - img.h = img.height = p->image_height; + mp_image_set_size(&img, p->image_width, p->image_height); mp_image_setfmt(&img, p->out_format); img.planes[0] = p->ImageData; |