Author: akhaldi
Date: Wed Aug 17 14:01:29 2011
New Revision: 53283
URL:
http://svn.reactos.org/svn/reactos?rev=53283&view=rev
Log:
[DXG]
* Include NDK headers on-demand.
* Set dxg_int.h as a PCH.
Modified:
trunk/reactos/drivers/directx/dxg/CMakeLists.txt
trunk/reactos/drivers/directx/dxg/dxg_driver.h
trunk/reactos/drivers/directx/dxg/dxg_int.h
trunk/reactos/drivers/directx/dxg/eng.c
trunk/reactos/drivers/directx/dxg/main.c
trunk/reactos/drivers/directx/dxg/tags.h
Modified: trunk/reactos/drivers/directx/dxg/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/directx/dxg/CMakeL…
==============================================================================
--- trunk/reactos/drivers/directx/dxg/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/directx/dxg/CMakeLists.txt [iso-8859-1] Wed Aug 17 14:01:29
2011
@@ -11,5 +11,5 @@
set_module_type(dxg kernelmodedriver)
add_importlibs(dxg dxgthk ntoskrnl)
-
-add_cd_file(TARGET dxg DESTINATION reactos/system32/drivers FOR all)
+add_pch(dxg dxg_int.h)
+add_cd_file(TARGET dxg DESTINATION reactos/system32/drivers FOR all)
Modified: trunk/reactos/drivers/directx/dxg/dxg_driver.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/directx/dxg/dxg_dr…
==============================================================================
--- trunk/reactos/drivers/directx/dxg/dxg_driver.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/directx/dxg/dxg_driver.h [iso-8859-1] Wed Aug 17 14:01:29 2011
@@ -1,4 +1,3 @@
-
DRVFN gaDxgFuncs [] =
{
Modified: trunk/reactos/drivers/directx/dxg/dxg_int.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/directx/dxg/dxg_in…
==============================================================================
--- trunk/reactos/drivers/directx/dxg/dxg_int.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/directx/dxg/dxg_int.h [iso-8859-1] Wed Aug 17 14:01:29 2011
@@ -1,9 +1,4 @@
-/* DDK/NDK/SDK Headers */
-#include <ntddk.h>
-#include <ntddmou.h>
#include <ntifs.h>
-#include <tvout.h>
-#include <ntndk.h>
/* Win32 Headers */
#define WINBASEAPI
@@ -12,13 +7,10 @@
#define INTERNAL_CALL NTAPI
#define NT_BUILD_ENVIRONMENT
-#include <stdarg.h>
#include <windef.h>
#include <winerror.h>
#include <wingdi.h>
#include <winddi.h>
-#include <prntfont.h>
-#include <dde.h>
/* DXG treats this as opaque */
typedef PVOID PDC;
@@ -109,4 +101,3 @@
#define drvDxEngUnlockDC gpEngFuncs[DXENG_INDEX_DxEngUnlockDC]
#define drvDxEngUnlockHdev gpEngFuncs[DXENG_INDEX_DxEngUnlockHdev]
#define drvDxEngLockHdev gpEngFuncs[DXENG_INDEX_DxEngLockHdev]
-
Modified: trunk/reactos/drivers/directx/dxg/eng.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/directx/dxg/eng.c?…
==============================================================================
--- trunk/reactos/drivers/directx/dxg/eng.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/directx/dxg/eng.c [iso-8859-1] Wed Aug 17 14:01:29 2011
@@ -8,9 +8,7 @@
* 30/12-2007 Magnus Olsen
*/
-
#include <dxg_int.h>
-
PDD_SURFACE_LOCAL
NTAPI
@@ -44,11 +42,3 @@
return retVal;
}
-
-
-
-
-
-
-
-
Modified: trunk/reactos/drivers/directx/dxg/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/directx/dxg/main.c…
==============================================================================
--- trunk/reactos/drivers/directx/dxg/main.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/directx/dxg/main.c [iso-8859-1] Wed Aug 17 14:01:29 2011
@@ -8,7 +8,6 @@
* 15/10-2007 Magnus Olsen
*/
-
#include <dxg_int.h>
#include "dxg_driver.h"
@@ -18,10 +17,8 @@
PEPROCESS gpepSession = NULL;
PLARGE_INTEGER gpLockShortDelay = NULL;
-
PDRVFN gpEngFuncs;
const ULONG gcDxgFuncs = DXG_INDEX_DxDdIoctl + 1;
-
NTSTATUS NTAPI
@@ -112,9 +109,6 @@
return STATUS_NO_MEMORY;
}
-
-
-
NTSTATUS
APIENTRY
DxDdCleanupDxGraphics(VOID)
@@ -135,4 +129,3 @@
return 0;
}
-
Modified: trunk/reactos/drivers/directx/dxg/tags.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/directx/dxg/tags.h…
==============================================================================
--- trunk/reactos/drivers/directx/dxg/tags.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/directx/dxg/tags.h [iso-8859-1] Wed Aug 17 14:01:29 2011
@@ -1,8 +1,2 @@
-
-
-
#define TAG_THDD 'ddht'
#define TAG_GINI 'iniG'
-
-
-