diff options
Diffstat (limited to 'video/out/vo_vdpau.c')
-rw-r--r-- | video/out/vo_vdpau.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index 67ac0593f8..661072b814 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -1375,8 +1375,7 @@ static struct mp_image *get_screenshot(struct vo *vo) struct mp_image *image = read_output_surface(vc, vc->screenshot_surface, vc->vid_width, vc->vid_height); - image->display_w = vo->aspdat.prew; - image->display_h = vo->aspdat.preh; + mp_image_set_display_size(image, vo->aspdat.prew, vo->aspdat.preh); return image; } @@ -1389,8 +1388,7 @@ static struct mp_image *get_window_screenshot(struct vo *vo) struct mp_image *image = read_output_surface(vo->priv, screen, vc->output_surface_width, vc->output_surface_height); - image->width = image->w = vo->dwidth; - image->height = image->h = vo->dheight; + mp_image_set_size(image, vo->dwidth, vo->dheight); return image; } |