diff options
Diffstat (limited to 'video/out/vo_sdl.c')
-rw-r--r-- | video/out/vo_sdl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/vo_sdl.c b/video/out/vo_sdl.c index f5a17b84d3..d04a63e5a6 100644 --- a/video/out/vo_sdl.c +++ b/video/out/vo_sdl.c @@ -435,8 +435,7 @@ static int config(struct vo *vo, uint32_t width, uint32_t height, } mp_image_t *texmpi = &vc->texmpi; - texmpi->width = texmpi->w = width; - texmpi->height = texmpi->h = height; + mp_image_set_size(texmpi, width, height); mp_image_setfmt(texmpi, format); switch (texmpi->num_planes) { case 1: |