From 4ccabac9ba908ff32f113ff74b0186bfdf69522d Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 8 Jul 2006 14:57:25 +0000 Subject: [PATCH] Do not fiddle (too much) with external (WinID) windows git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18953 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/w32_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvo/w32_common.c b/libvo/w32_common.c index 278c0b9d56..48db3c9130 100644 --- a/libvo/w32_common.c +++ b/libvo/w32_common.c @@ -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;