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:
reimar 2006-07-08 14:57:25 +00:00
parent 6a77e34f94
commit 4ccabac9ba
1 changed files with 2 additions and 0 deletions

View File

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