Update and implement UnrealizeObject.

svn path=/trunk/; revision=16687
This commit is contained in:
James Tabor 2005-07-22 12:25:02 +00:00
parent c85a086e9e
commit 0f84d9e6fd
2 changed files with 9 additions and 10 deletions

View file

@ -1107,7 +1107,7 @@ ScaleWindowExtEx(
/* /*
* @unimplemented * @implemented
*/ */
BOOL BOOL
STDCALL STDCALL
@ -1115,7 +1115,6 @@ UnrealizeObject(
HGDIOBJ a0 HGDIOBJ a0
) )
{ {
UNIMPLEMENTED;
return NtGdiUnrealizeObject(a0); return NtGdiUnrealizeObject(a0);
} }

View file

@ -588,6 +588,13 @@ NtGdiSetSystemPaletteUse(HDC hDC, UINT Usage)
return old; return old;
} }
/*
Win 2k Graphics API, Black Book. by coriolis.com
Page 62, Note that Steps 3, 5, and 6 are not required for Windows NT(tm)
and Windows 2000(tm).
Step 5. UnrealizeObject(hTrackBrush);
*/
BOOL STDCALL BOOL STDCALL
NtGdiUnrealizeObject(HGDIOBJ hgdiobj) NtGdiUnrealizeObject(HGDIOBJ hgdiobj)
{ {
@ -595,7 +602,6 @@ NtGdiUnrealizeObject(HGDIOBJ hgdiobj)
GDIOBJHDR * ptr; GDIOBJHDR * ptr;
DWORD objectType; DWORD objectType;
BOOL Ret = FALSE; BOOL Ret = FALSE;
UNIMPLEMENTED;
ptr = GDIOBJ_LockObj(hgdiobj, GDI_OBJECT_TYPE_DONTCARE); ptr = GDIOBJ_LockObj(hgdiobj, GDI_OBJECT_TYPE_DONTCARE);
if (ptr == 0) if (ptr == 0)
@ -606,12 +612,6 @@ NtGdiUnrealizeObject(HGDIOBJ hgdiobj)
objectType = GDIOBJ_GetObjectType(hgdiobj); objectType = GDIOBJ_GetObjectType(hgdiobj);
switch(objectType) switch(objectType)
{ {
case GDI_OBJECT_TYPE_PALETTE:
{
/* Make sure this is a Palette object!*/
DPRINT1("GDI_OBJECT_TYPE_PALETTE\n");
break;
}
/* /*
msdn.microsoft.com, msdn.microsoft.com,
"Windows 2000/XP: If hgdiobj is a brush, UnrealizeObject does nothing, "Windows 2000/XP: If hgdiobj is a brush, UnrealizeObject does nothing,
@ -620,7 +620,7 @@ NtGdiUnrealizeObject(HGDIOBJ hgdiobj)
*/ */
case GDI_OBJECT_TYPE_BRUSH: case GDI_OBJECT_TYPE_BRUSH:
{ {
DPRINT1("GDI_OBJECT_TYPE_BRUSH\n"); DPRINT("GDI_OBJECT_TYPE_BRUSH\n");
Ret = TRUE; Ret = TRUE;
break; break;
} }