mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:02:59 +00:00
[Win32k]
- Apply band-aid patch from CORE-8506. Problem still persists, how did a bad region get plugged into the DCE structure? svn path=/trunk/; revision=64054
This commit is contained in:
parent
adcc14bdf9
commit
7ae67c3b7a
1 changed files with 8 additions and 4 deletions
|
@ -215,7 +215,7 @@ DceUpdateVisRgn(DCE *Dce, PWND Window, ULONG Flags)
|
|||
PWND Parent;
|
||||
|
||||
Parent = Window->spwndParent;
|
||||
if(!Parent)
|
||||
if (!Parent)
|
||||
{
|
||||
RgnVisible = NULL;
|
||||
goto noparent;
|
||||
|
@ -252,15 +252,19 @@ DceUpdateVisRgn(DCE *Dce, PWND Window, ULONG Flags)
|
|||
noparent:
|
||||
if (Flags & DCX_INTERSECTRGN)
|
||||
{
|
||||
if(Dce->hrgnClip != NULL)
|
||||
PREGION RgnClip = NULL;
|
||||
|
||||
if (Dce->hrgnClip != NULL)
|
||||
RgnClip = REGION_LockRgn(Dce->hrgnClip);
|
||||
|
||||
if (RgnClip)
|
||||
{
|
||||
PREGION RgnClip = REGION_LockRgn(Dce->hrgnClip);
|
||||
IntGdiCombineRgn(RgnVisible, RgnVisible, RgnClip, RGN_AND);
|
||||
REGION_UnlockRgn(RgnClip);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(RgnVisible != NULL)
|
||||
if (RgnVisible != NULL)
|
||||
{
|
||||
REGION_Delete(RgnVisible);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue