mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 07:56:59 +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:
parent
04fbc5df72
commit
95bc4a2671
1 changed files with 5 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue