mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user