vo_kva: Prevent a parent window from painting over ours in slave mode

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32569 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
komh 2010-11-02 13:51:52 +00:00 committed by Uoti Urpala
parent 0142db087b
commit 163ae34e96
1 changed files with 6 additions and 0 deletions

View File

@ -568,8 +568,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 =