mirror of
https://github.com/reactos/reactos.git
synced 2025-07-12 15:34:12 +00:00
Reorder code since it is a POWNED DC.
svn path=/trunk/; revision=31345
This commit is contained in:
parent
cefb74f67d
commit
7b80e82207
1 changed files with 3 additions and 7 deletions
|
@ -630,15 +630,11 @@ DceFreeWindowDCE(PWINDOW_OBJECT Window)
|
||||||
if (Window->Wnd->Class->Style & CS_CLASSDC ||
|
if (Window->Wnd->Class->Style & CS_CLASSDC ||
|
||||||
Window->Wnd->Style & CS_CLASSDC) /* Test Class first */
|
Window->Wnd->Style & CS_CLASSDC) /* Test Class first */
|
||||||
{
|
{
|
||||||
PWINDOW_OBJECT CurrentWindow;
|
|
||||||
if (pDCE->DCXFlags & (DCX_INTERSECTRGN | DCX_EXCLUDERGN)) /* Class DCE*/
|
if (pDCE->DCXFlags & (DCX_INTERSECTRGN | DCX_EXCLUDERGN)) /* Class DCE*/
|
||||||
DceDeleteClipRgn(pDCE);
|
DceDeleteClipRgn(pDCE);
|
||||||
CurrentWindow = UserGetWindowObject(pDCE->hwndCurrent);
|
// Update and reset Vis Rgn and clear the dirty bit.
|
||||||
if (CurrentWindow)
|
|
||||||
{ // Update and reset Vis Rgn and clear the dirty bit.
|
|
||||||
// Should release VisRgn than reset it to default.
|
// Should release VisRgn than reset it to default.
|
||||||
DceUpdateVisRgn(pDCE, CurrentWindow, pDCE->DCXFlags);
|
DceUpdateVisRgn(pDCE, Window, pDCE->DCXFlags);
|
||||||
}
|
|
||||||
pDCE->DCXFlags = DCX_DCEEMPTY;
|
pDCE->DCXFlags = DCX_DCEEMPTY;
|
||||||
pDCE->hwndCurrent = 0;
|
pDCE->hwndCurrent = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue