[MPlayer-cvslog] r32569 - trunk/libvo/vo_kva.c

komh subversion at mplayerhq.hu
Tue Nov 2 14:51:52 CET 2010


Author: komh
Date: Tue Nov  2 14:51:52 2010
New Revision: 32569

Log:
Prevent a parent window from painting over our window on slave mode

Modified:
   trunk/libvo/vo_kva.c

Modified: trunk/libvo/vo_kva.c
==============================================================================
--- trunk/libvo/vo_kva.c	Sat Oct 30 17:29:20 2010	(r32568)
+++ trunk/libvo/vo_kva.c	Tue Nov  2 14:51:52 2010	(r32569)
@@ -569,8 +569,14 @@ static int preinit(const char *arg)
         flFrameFlags = FCF_SYSMENU    | FCF_TITLEBAR | FCF_MINMAX |
                        FCF_SIZEBORDER | FCF_TASKLIST;
     } else {
+        ULONG ulStyle;
+
         hwndParent   = HWNDFROMWINID(WinID);
         flFrameFlags = 0;
+
+        // Prevent a parent window from painting over our window
+        ulStyle = WinQueryWindowULong(hwndParent, QWL_STYLE);
+        WinSetWindowULong(hwndParent, QWL_STYLE, ulStyle | WS_CLIPCHILDREN);
     }
 
     m_int.hwndFrame =


More information about the MPlayer-cvslog mailing list