mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 19:34:14 +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:
parent
4b9ee2e206
commit
21040bb951
@ -421,7 +421,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
|
|||||||
XSelectInput(mDisplay, vo_window, ExposureMask);
|
XSelectInput(mDisplay, vo_window, ExposureMask);
|
||||||
} else
|
} 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);
|
flags, theCmap, "x11", title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -272,7 +272,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
|
|||||||
}
|
}
|
||||||
} else
|
} 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);
|
flags, CopyFromParent, "xv", title);
|
||||||
XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa);
|
XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user