In WIN_UpdateNCRgn, do not send in WM_NCPAINT a region that is used
afterwards, but a copy of it.
This commit is contained in:
parent
ec133cea9a
commit
f0380e573c
|
@ -232,8 +232,14 @@ copyrgn:
|
|||
|
||||
if( hClip ) /* NOTE: WM_NCPAINT allows wParam to be 1 */
|
||||
{
|
||||
if ( hClip == hrgnRet && hrgnRet > 1 ) {
|
||||
hClip = CreateRectRgn( 0, 0, 0, 0 );
|
||||
CombineRgn( hClip, hrgnRet, 0, RGN_COPY );
|
||||
}
|
||||
|
||||
SendMessageA( wnd->hwndSelf, WM_NCPAINT, hClip, 0L );
|
||||
if( (hClip > 1)&& (hClip != hRgn) && (hClip != hrgnRet) ) DeleteObject( hClip );
|
||||
if( (hClip > 1) && (hClip != hRgn) && (hClip != hrgnRet) )
|
||||
DeleteObject( hClip );
|
||||
/*
|
||||
* Since all Window locks are suspended while processing the WM_NCPAINT
|
||||
* we want to make sure the window still exists before continuing.
|
||||
|
|
Loading…
Reference in New Issue