mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Implementation of ReleaseDC(), works for now but could be made more efficient
svn path=/trunk/; revision=6219
This commit is contained in:
parent
8f27cdee0d
commit
826367ef3c
2 changed files with 10 additions and 6 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: windc.c,v 1.25 2003/09/26 20:58:05 gvg Exp $
|
||||
/* $Id: windc.c,v 1.26 2003/10/03 18:04:37 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -227,7 +227,6 @@ DceReleaseDC(DCE* dce)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* restore previous visible region */
|
||||
|
||||
if ((dce->DCXFlags & (DCX_INTERSECTRGN | DCX_EXCLUDERGN)) &&
|
||||
|
@ -252,7 +251,6 @@ DceReleaseDC(DCE* dce)
|
|||
dce->DCXFlags |= DCX_DCEEMPTY;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
@ -362,7 +360,9 @@ NtUserGetDCEx(HWND hWnd, HANDLE ClipRegion, ULONG Flags)
|
|||
else if (Dce->hwndCurrent == hWnd &&
|
||||
((Dce->DCXFlags & DCX_CACHECOMPAREMASK) == DcxFlags))
|
||||
{
|
||||
#if 0 /* FIXME */
|
||||
UpdateVisRgn = FALSE;
|
||||
#endif
|
||||
UpdateClipOrigin = TRUE;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: dc.c,v 1.83 2003/09/26 20:58:06 gvg Exp $
|
||||
/* $Id: dc.c,v 1.84 2003/10/03 18:04:37 gvg Exp $
|
||||
*
|
||||
* DC.C - Device context functions
|
||||
*
|
||||
|
@ -884,7 +884,9 @@ NtGdiSetDCState ( HDC hDC, HDC hDCSave )
|
|||
dc->w.hClipRgn = 0;
|
||||
}
|
||||
CLIPPING_UpdateGCRegion( dc );
|
||||
DC_UnlockDc ( hDC );
|
||||
#else
|
||||
DC_UnlockDc ( hDC );
|
||||
NtGdiSelectClipRgn(hDC, dcs->w.hClipRgn);
|
||||
#endif
|
||||
|
||||
|
@ -898,11 +900,13 @@ NtGdiSetDCState ( HDC hDC, HDC hDCSave )
|
|||
#if 0
|
||||
GDISelectPalette16( hDC, dcs->w.hPalette, FALSE );
|
||||
#endif
|
||||
} else {
|
||||
DC_UnlockDc(hDC);
|
||||
}
|
||||
|
||||
DC_UnlockDc ( hDCSave );
|
||||
} else {
|
||||
DC_UnlockDc ( hDC );
|
||||
}
|
||||
DC_UnlockDc ( hDC );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue