1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-13 02:16:40 +00:00

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

View File

@ -568,8 +568,14 @@ static int preinit(const char *arg)
flFrameFlags = FCF_SYSMENU | FCF_TITLEBAR | FCF_MINMAX | flFrameFlags = FCF_SYSMENU | FCF_TITLEBAR | FCF_MINMAX |
FCF_SIZEBORDER | FCF_TASKLIST; FCF_SIZEBORDER | FCF_TASKLIST;
} else { } else {
ULONG ulStyle;
hwndParent = HWNDFROMWINID(WinID); hwndParent = HWNDFROMWINID(WinID);
flFrameFlags = 0; 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 = m_int.hwndFrame =