diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-11-15 18:58:14 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-11-15 18:58:14 +0000 |
commit | 21040bb95168c44232cc39bb9ae7dc9b4af4206f (patch) | |
tree | 0403f3041fdcd2e0021dbb96816a98d18017e877 | |
parent | 4b9ee2e2063f8d0a56288cb9d1aa8b35e640600b (diff) | |
download | mpv-21040bb95168c44232cc39bb9ae7dc9b4af4206f.tar.bz2 mpv-21040bb95168c44232cc39bb9ae7dc9b4af4206f.tar.xz |
Use vo_dwidth/vo_dheight for creating the windows instead of d_width/d_height.
This fixes the -vm bug that the created window is too small.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27925 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_x11.c | 2 | ||||
-rw-r--r-- | libvo/vo_xv.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index af5dcfb0a8..fbc3b4db19 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -421,7 +421,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, XSelectInput(mDisplay, vo_window, ExposureMask); } else { - vo_x11_create_vo_window(&vinfo, vo_dx, vo_dy, d_width, d_height, + vo_x11_create_vo_window(&vinfo, vo_dx, vo_dy, vo_dwidth, vo_dheight, flags, theCmap, "x11", title); } diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index 302d98f1b2..926f3737be 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -272,7 +272,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, } } else { - vo_x11_create_vo_window(&vinfo, vo_dx, vo_dy, d_width, d_height, + vo_x11_create_vo_window(&vinfo, vo_dx, vo_dy, vo_dwidth, vo_dheight, flags, CopyFromParent, "xv", title); XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa); } |