summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-24 21:23:07 +0100
committerwm4 <wm4@nowhere>2014-01-31 19:06:29 +0100
commit321b3952b041373ef56c98c3524cbbce5a95aebe (patch)
treec00cce7cca05f5d7ab171d78103ee0a794bbddfc
parentd49b49ff96e97b7fc03adabf2ea17fd278a1d02e (diff)
downloadmpv-321b3952b041373ef56c98c3524cbbce5a95aebe.tar.bz2
mpv-321b3952b041373ef56c98c3524cbbce5a95aebe.tar.xz
vo_wayland: fix confusion of video and window sizes
-rw-r--r--video/out/vo_wayland.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c
index 1d9025b245..dddf047611 100644
--- a/video/out/vo_wayland.c
+++ b/video/out/vo_wayland.c
@@ -595,8 +595,8 @@ static int reconfig(struct vo *vo, struct mp_image_params *fmt, int flags)
struct priv *p = vo->priv;
mp_image_unrefp(&p->original_image);
- p->width = vo->dwidth;
- p->height = vo->dheight;
+ p->width = fmt->w;
+ p->height = fmt->h;
p->in_format = *fmt;
struct supported_format *sf;