diff options
author | wm4 <wm4@nowhere> | 2012-10-26 20:19:06 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-01 02:07:45 +0100 |
commit | c62efc52c6c5f9dc9cf8e335f6e934e69a721331 (patch) | |
tree | f29779dd1e4624dba1e7d0824eca93a8ce9f7a4e /libvo/vo_direct3d.c | |
parent | 738aeb1c60c6ffe95e915e443598f8a51081bdfb (diff) | |
download | mpv-c62efc52c6c5f9dc9cf8e335f6e934e69a721331.tar.bz2 mpv-c62efc52c6c5f9dc9cf8e335f6e934e69a721331.tar.xz |
screenshot: remove hack for passing anamorphic image size
With anamorphic video (display with non-1:1 PAR, e.g. DVD), the display
size was passed using the mp_image fields w/h, which was blatantly
incorrect. w/h are the normal image dimensions, while width/height are
the "uncropped" storage size (used internally by vf.c).
Add a display_w/h, and use that for the display size. Make all VOs that
can do screenshots use it.
Diffstat (limited to 'libvo/vo_direct3d.c')
-rw-r--r-- | libvo/vo_direct3d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/vo_direct3d.c b/libvo/vo_direct3d.c index 773cd5fb76..5fc2a64893 100644 --- a/libvo/vo_direct3d.c +++ b/libvo/vo_direct3d.c @@ -1801,8 +1801,8 @@ static mp_image_t *get_screenshot(d3d_priv *priv) return NULL; } - image->w = priv->vo->aspdat.prew; - image->h = priv->vo->aspdat.preh; + image->display_w = priv->vo->aspdat.prew; + image->display_h = priv->vo->aspdat.preh; mp_image_set_colorspace_details(image, &priv->colorspace); |