mirror of https://github.com/mpv-player/mpv
Do not fiddle (too much) with external (WinID) windows
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18953 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6a77e34f94
commit
4ccabac9ba
|
@ -232,6 +232,7 @@ static int createRenderingContext(void) {
|
|||
PIXELFORMATDESCRIPTOR pfd;
|
||||
RECT r;
|
||||
int pf;
|
||||
if (WinID < 0) {
|
||||
int style = (vo_border && !vo_fs) ?
|
||||
(WS_OVERLAPPEDWINDOW | WS_SIZEBOX) : WS_POPUP;
|
||||
|
||||
|
@ -273,6 +274,7 @@ static int createRenderingContext(void) {
|
|||
r.bottom = r.top + vo_dheight;
|
||||
AdjustWindowRect(&r, style, 0);
|
||||
SetWindowPos(vo_window, layer, r.left, r.top, r.right - r.left, r.bottom - r.top, SWP_SHOWWINDOW);
|
||||
}
|
||||
|
||||
memset(&pfd, 0, sizeof pfd);
|
||||
pfd.nSize = sizeof pfd;
|
||||
|
|
Loading…
Reference in New Issue