mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 14:13:01 +00:00
Move GetDCObject to dc.c.
svn path=/trunk/; revision=28707
This commit is contained in:
parent
4d772974cc
commit
5ea25d9303
2 changed files with 37 additions and 37 deletions
|
@ -316,6 +316,43 @@ SetArcDirection( HDC hdc, INT nDirection )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HGDIOBJ
|
||||||
|
STDCALL
|
||||||
|
GetDCObject( HDC hDC, INT iType)
|
||||||
|
{
|
||||||
|
#if 0
|
||||||
|
if((iType == GDI_OBJECT_TYPE_BRUSH) ||
|
||||||
|
(iType == GDI_OBJECT_TYPE_EXTPEN)||
|
||||||
|
(iType == GDI_OBJECT_TYPE_PEN) ||
|
||||||
|
(iType == GDI_OBJECT_TYPE_COLORSPACE))
|
||||||
|
{
|
||||||
|
HGDIOBJ hGO;
|
||||||
|
PDC_ATTR Dc_Attr;
|
||||||
|
|
||||||
|
if (!GdiGetHandleUserData((HGDIOBJ) hDC, (PVOID) &Dc_Attr)) return NULL;
|
||||||
|
|
||||||
|
switch (iType)
|
||||||
|
{
|
||||||
|
case GDI_OBJECT_TYPE_BRUSH:
|
||||||
|
hGO = Dc_Attr->hbrush;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case GDI_OBJECT_TYPE_EXTPEN:
|
||||||
|
case GDI_OBJECT_TYPE_PEN:
|
||||||
|
hGO = Dc_Attr->hpen;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case GDI_OBJECT_TYPE_COLORSPACE:
|
||||||
|
hGO = Dc_Attr->hColorSpace;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return hGO;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
return NtGdiGetDCObject( hDC, iType );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -3,43 +3,6 @@
|
||||||
|
|
||||||
#if 0 /* FIXME: enable this as soon as we have working usermode gdi */
|
#if 0 /* FIXME: enable this as soon as we have working usermode gdi */
|
||||||
|
|
||||||
// Will move to dc.c
|
|
||||||
HGDIOBJ
|
|
||||||
STDCALL
|
|
||||||
GetDCObject( HDC hDC, INT iType)
|
|
||||||
{
|
|
||||||
|
|
||||||
if((iType == GDI_OBJECT_TYPE_BRUSH) ||
|
|
||||||
(iType == GDI_OBJECT_TYPE_EXTPEN)||
|
|
||||||
(iType == GDI_OBJECT_TYPE_PEN) ||
|
|
||||||
(iType == GDI_OBJECT_TYPE_COLORSPACE))
|
|
||||||
{
|
|
||||||
HGDIOBJ hGO;
|
|
||||||
PDC_ATTR Dc_Attr;
|
|
||||||
|
|
||||||
if (!GdiGetHandleUserData((HGDIOBJ) hDC, (PVOID) &Dc_Attr)) return NULL;
|
|
||||||
|
|
||||||
switch (iType)
|
|
||||||
{
|
|
||||||
case GDI_OBJECT_TYPE_BRUSH:
|
|
||||||
hGO = Dc_Attr->hbrush;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case GDI_OBJECT_TYPE_EXTPEN:
|
|
||||||
case GDI_OBJECT_TYPE_PEN:
|
|
||||||
hGO = Dc_Attr->hpen;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case GDI_OBJECT_TYPE_COLORSPACE:
|
|
||||||
hGO = Dc_Attr->hColorSpace;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return hGO;
|
|
||||||
}
|
|
||||||
return NtGdiGetDCObject( hDC, iType );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
STDCALL
|
STDCALL
|
||||||
LineTo( HDC hDC, INT x, INT y )
|
LineTo( HDC hDC, INT x, INT y )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue