changeset 18948:c2aee29c80b6

Do not fiddle (too much) with external (WinID) windows
author reimar
date Sat, 08 Jul 2006 14:57:25 +0000
parents 06ab2099c10e
children 51aeef9ada52
files libvo/w32_common.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/w32_common.c	Sat Jul 08 14:05:47 2006 +0000
+++ b/libvo/w32_common.c	Sat Jul 08 14:57:25 2006 +0000
@@ -232,6 +232,7 @@
     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 @@
     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;