mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Handle regions in SelectObject()
svn path=/trunk/; revision=8987
This commit is contained in:
parent
5aae8fca39
commit
1bc88e0f77
1 changed files with 4 additions and 6 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: dc.c,v 1.126 2004/04/05 21:26:25 navaraf Exp $
|
/* $Id: dc.c,v 1.127 2004/04/06 07:43:33 gvg Exp $
|
||||||
*
|
*
|
||||||
* DC.C - Device context functions
|
* DC.C - Device context functions
|
||||||
*
|
*
|
||||||
|
@ -1902,12 +1902,10 @@ NtGdiSelectObject(HDC hDC, HGDIOBJ hGDIObj)
|
||||||
|
|
||||||
return objOrg;
|
return objOrg;
|
||||||
|
|
||||||
#if UPDATEREGIONS
|
|
||||||
case GDI_OBJECT_TYPE_REGION:
|
case GDI_OBJECT_TYPE_REGION:
|
||||||
DC_UnlockDc ( hDC );
|
DC_UnlockDc (hDC);
|
||||||
SelectClipRgn(hDC, (HRGN)hGDIObj);
|
return (HGDIOBJ) NtGdiSelectClipRgn(hDC, (HRGN) hGDIObj);
|
||||||
return NULL;
|
|
||||||
#endif
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue