Author: jimtabor
Date: Sun Apr 22 02:23:19 2007
New Revision: 26457
URL:
http://svn.reactos.org/svn/reactos?rev=26457&view=rev
Log:
Removed NtGdiGetObjectType, use GDI_HANDLE_GET_TYPE.
Modified:
trunk/reactos/include/reactos/win32k/ntgdibad.h
trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c
trunk/reactos/subsystems/win32/win32k/objects/dc.c
trunk/reactos/tools/nci/w32ksvc.db
Modified: trunk/reactos/include/reactos/win32k/ntgdibad.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntg…
==============================================================================
--- trunk/reactos/include/reactos/win32k/ntgdibad.h (original)
+++ trunk/reactos/include/reactos/win32k/ntgdibad.h Sun Apr 22 02:23:19 2007
@@ -640,9 +640,6 @@
HRGN hrgn
);
-/* Should be done in user-mode using shared GDI Objects. */
-DWORD STDCALL NtGdiGetObjectType(HGDIOBJ hGDIObj);
-
/* Use NtGdiGetOutlineTextMetricsInternalW. */
UINT
STDCALL
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c Sun Apr 22 02:23:19 2007
@@ -1417,7 +1417,7 @@
UserGetSystemMetrics(SM_CYICON) : IconSize.cy);
DoFlickerFree = (hbrFlickerFreeDraw &&
- (NtGdiGetObjectType(hbrFlickerFreeDraw) == OBJ_BRUSH));
+ (GDI_HANDLE_GET_TYPE(hbrFlickerFreeDraw) == GDI_OBJECT_TYPE_BRUSH));
if(DoFlickerFree)
{
Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dc.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dc.c Sun Apr 22 02:23:19 2007
@@ -1874,71 +1874,6 @@
return Ret;
}
-DWORD STDCALL
-NtGdiGetObjectType(HANDLE handle)
-{
- GDIOBJHDR * ptr;
- INT result;
- DWORD objectType;
-
- ptr = GDIOBJ_LockObj(GdiHandleTable, handle, GDI_OBJECT_TYPE_DONTCARE);
- if (ptr == 0)
- {
- SetLastWin32Error(ERROR_INVALID_HANDLE);
- return 0;
- }
-
- objectType = GDIOBJ_GetObjectType(handle);
- switch(objectType)
- {
- case GDI_OBJECT_TYPE_PEN:
- result = OBJ_PEN;
- break;
- case GDI_OBJECT_TYPE_BRUSH:
- result = OBJ_BRUSH;
- break;
- case GDI_OBJECT_TYPE_BITMAP:
- result = OBJ_BITMAP;
- break;
- case GDI_OBJECT_TYPE_FONT:
- result = OBJ_FONT;
- break;
- case GDI_OBJECT_TYPE_PALETTE:
- result = OBJ_PAL;
- break;
- case GDI_OBJECT_TYPE_REGION:
- result = OBJ_REGION;
- break;
- case GDI_OBJECT_TYPE_DC:
- result = OBJ_DC;
- break;
- case GDI_OBJECT_TYPE_METADC:
- result = OBJ_METADC;
- break;
- case GDI_OBJECT_TYPE_METAFILE:
- result = OBJ_METAFILE;
- break;
- case GDI_OBJECT_TYPE_ENHMETAFILE:
- result = OBJ_ENHMETAFILE;
- break;
- case GDI_OBJECT_TYPE_ENHMETADC:
- result = OBJ_ENHMETADC;
- break;
- case GDI_OBJECT_TYPE_EXTPEN:
- result = OBJ_EXTPEN;
- break;
- case GDI_OBJECT_TYPE_MEMDC:
- result = OBJ_MEMDC;
- break;
-
- default:
- DPRINT1("Magic 0x%08x not implemented\n", objectType);
- result = 0;
- break;
- }
- GDIOBJ_UnlockObjByPtr(GdiHandleTable, ptr);
- return result;
-}
DC_GET_VAL( INT, NtGdiGetRelAbs, w.relAbsMode )
DC_GET_VAL( INT, NtGdiGetROP2, w.ROPmode )
Modified: trunk/reactos/tools/nci/w32ksvc.db
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/nci/w32ksvc.db?rev=2…
==============================================================================
--- trunk/reactos/tools/nci/w32ksvc.db (original)
+++ trunk/reactos/tools/nci/w32ksvc.db Sun Apr 22 02:23:19 2007
@@ -137,7 +137,6 @@
NtGdiGetMiterLimit 2
NtGdiGetNearestColor 2
NtGdiGetNearestPaletteIndex 2
-NtGdiGetObjectType 1
NtGdiGetOutlineTextMetrics 3
NtGdiGetPaletteEntries 4
NtGdiGetPath 4