From 598e4e55693b965b6d471a47e71a5518d3ff0687 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 21 Oct 2007 13:49:29 +0000 Subject: [PATCH] make ReactX compile again, it can not load dxg.sys yet. svn path=/branches/reactx/; revision=29736 --- .../subsystems/win32/win32k/ntddraw/ddraw.c | 22 ------------------- .../subsystems/win32/win32k/objects/gdiobj.c | 10 ++++----- reactos/subsystems/win32/win32k/stubs/stubs.c | 22 ------------------- 3 files changed, 5 insertions(+), 49 deletions(-) diff --git a/reactos/subsystems/win32/win32k/ntddraw/ddraw.c b/reactos/subsystems/win32/win32k/ntddraw/ddraw.c index ca1e436787f..438641c5349 100644 --- a/reactos/subsystems/win32/win32k/ntddraw/ddraw.c +++ b/reactos/subsystems/win32/win32k/ntddraw/ddraw.c @@ -105,28 +105,6 @@ DxDdStartupDxGraphics( ULONG ulc1, return Status; } -BOOL -INTERNAL_CALL -DD_Cleanup(PVOID ObjectBody) -{ - // FIXME remove this line PDD_DIRECTDRAW pDirectDraw = (PDD_DIRECTDRAW) ObjectBody; - DPRINT1("DD_Cleanup\n"); - - /* Do not known what the new cleanup code should do at moment */ - return TRUE; -} - -BOOL -INTERNAL_CALL -DDSURF_Cleanup(PVOID pDDSurf) -{ - DPRINT1("DDSURF_Cleanup\n"); - /* Do not known what the new cleanup code should do at moment */ - return TRUE; -} - - - /************************************************************************/ /* DirectX graphic/video driver loading cleanup ends here */ /************************************************************************/ diff --git a/reactos/subsystems/win32/win32k/objects/gdiobj.c b/reactos/subsystems/win32/win32k/objects/gdiobj.c index 3b2bee308d9..4698bcfc5ea 100644 --- a/reactos/subsystems/win32/win32k/objects/gdiobj.c +++ b/reactos/subsystems/win32/win32k/objects/gdiobj.c @@ -70,8 +70,8 @@ OBJ_TYPE_INFO ObjTypeInfo[] = { {0, 0, 0, NULL}, /* 00 reserved entry */ {1, sizeof(DC), GDI_OBJECT_TAG_DC, DC_Cleanup}, /* 01 DC */ - {1, sizeof(DD_DIRECTDRAW), GDI_OBJECT_TAG_DDRAW, DD_Cleanup}, /* 02 DD_DDRAW, should be moved away from gdi objects */ - {1, sizeof(DD_SURFACE), GDI_OBJECT_TAG_DDSURF, DDSURF_Cleanup}, /* 03 DD_SURFACE, should be moved away from gdi objects */ + {0, 0, 0, NULL}, /* 02 DD_DDRAW, unused, should it be here ? */ + {0, 0, 0, NULL}, /* 03 DD_SURFACE, unused, should it be here ? */ {1, sizeof(ROSRGNDATA), GDI_OBJECT_TAG_REGION, RGNDATA_Cleanup}, /* 04 REGION */ {1, sizeof(BITMAPOBJ), GDI_OBJECT_TAG_BITMAP, BITMAP_Cleanup}, /* 05 BITMAP */ {0, sizeof(DC), GDI_OBJECT_TAG_CLIOBJ, GDI_CleanupDummy}, /* 06 CLIOBJ: METADC,... FIXME: don't use DC struct */ @@ -85,10 +85,10 @@ OBJ_TYPE_INFO ObjTypeInfo[] = {0, 0, 0, NULL}, /* 0e ICMCXF, unused */ {0, 0, 0, NULL}, /* 0f ICMDLL, unused */ {1, sizeof(GDIBRUSHOBJ), GDI_OBJECT_TAG_BRUSH, BRUSH_Cleanup}, /* 10 BRUSH, PEN, EXTPEN */ - {0, 0, 0, NULL}, /* 11 D3D_HANDLE, unused */ - {0, 0, 0, NULL}, /* 12 DD_VPORT, unused */ + {0, 0, 0, NULL}, /* 11 D3D_HANDLE, unused, should it be here ? */ + {0, 0, 0, NULL}, /* 12 DD_VPORT, unused, should it be here ? */ {0, 0, 0, NULL}, /* 13 SPACE, unused */ - {0, 0, 0, NULL}, /* 14 DD_MOTION, unused */ + {0, 0, 0, NULL}, /* 14 DD_MOTION, unused, should it be here ? */ {0, 0, 0, NULL}, /* 15 META, unused */ {0, 0, 0, NULL}, /* 16 ENUMFONT, unused */ {0, 0, 0, NULL}, /* 17 BMFD, unused */ diff --git a/reactos/subsystems/win32/win32k/stubs/stubs.c b/reactos/subsystems/win32/win32k/stubs/stubs.c index 53ed7968313..c271d9966a0 100644 --- a/reactos/subsystems/win32/win32k/stubs/stubs.c +++ b/reactos/subsystems/win32/win32k/stubs/stubs.c @@ -918,17 +918,6 @@ EngHangNotification( return EHN_ERROR; } -/* - * @unimplemented - */ -PDD_SURFACE_LOCAL STDCALL -EngLockDirectDrawSurface( - IN HANDLE Surface) -{ - UNIMPLEMENTED; - return NULL; -} - /* * @unimplemented */ @@ -1019,17 +1008,6 @@ EngStretchBltROP( return FALSE; } -/* - * @unimplemented - */ -BOOL STDCALL -EngUnlockDirectDrawSurface( - IN PDD_SURFACE_LOCAL Surface) -{ - UNIMPLEMENTED; - return FALSE; -} - /* * @unimplemented */