Adding more than one video device.. We need to fix NtGdiCreateCompatibleDC and DceCreateDisplayDC so they can access the device name from the default PDev or PrimarySurface. ATM we use L"DISPLAY" not L"\\??\\DISPLAY%d"(<-display number) to create a new HDC. In Gdi32 IntCreateDICW we basicly do the same w/o the display number. This code is correct and please leave it alone. I add some code in win32k dc.c, so we can start the changes.

svn path=/trunk/; revision=33348
This commit is contained in:
James Tabor 2008-05-07 18:12:19 +00:00
parent 04fbc5df72
commit 95bc4a2671

View file

@ -28,7 +28,10 @@
#define NDEBUG
#include <debug.h>
// --------------------------------------------------------- File Statics
static GDIDEVICE PrimarySurface;
static PGDIDEVICE pPrimarySurface = NULL;
static KEVENT VideoDriverNeedsPreparation;
static KEVENT VideoDriverPrepared;
static PDC defaultDCstate = NULL;
@ -44,8 +47,6 @@ InitDcImpl(VOID)
/* FIXME: DCs should probably be thread safe */
// --------------------------------------------------------- File Statics
// ----------------------------------------------------- Public Functions
BOOL STDCALL
@ -362,6 +363,8 @@ IntPrepareDriver()
RtlZeroMemory(&PrimarySurface, sizeof(PrimarySurface));
if (!pPrimarySurface) pPrimarySurface = ExAllocatePoolWithTag(PagedPool, sizeof(GDIDEVICE), TAG_GDIPDEV);
PrimarySurface.VideoFileObject = DRIVER_FindMPDriver(DisplayNumber);
/* Open the miniport driver */