1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-22 03:08:33 +00:00

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
This commit is contained in:
reimar 2008-11-15 18:58:14 +00:00
parent 4b9ee2e206
commit 21040bb951
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}