Mercurial > mplayer.hg
changeset 32482:cc24ebf93de4
Prevent a parent window from painting over our window on slave mode
author | komh |
---|---|
date | Tue, 02 Nov 2010 13:51:52 +0000 |
parents | 983577adcf0e |
children | 8975b893179e |
files | libvo/vo_kva.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_kva.c Sat Oct 30 15:29:20 2010 +0000 +++ b/libvo/vo_kva.c Tue Nov 02 13:51:52 2010 +0000 @@ -569,8 +569,14 @@ 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 =