Author: greatlrd
Date: Fri May 2 14:42:38 2008
New Revision: 33245
URL:
http://svn.reactos.org/svn/reactos?rev=33245&view=rev
Log:
re adding a small hack for edd_directdraw_globalk getting clear out some where in win32k.
we need track down this bug.
Modified:
trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
trunk/reactos/subsystems/win32/win32k/objects/dc.c
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c [iso-8859-1] Fri May 2 14:42:38
2008
@@ -66,6 +66,9 @@
}
else
{
+ /* FIXME HACK : some how pEDDgpl got zero out */
+ pDev->pEDDgpl = (PVOID)&edd_DdirectDraw_Global;
+
/* FIXME : proper check see if it been disable */
if (pDev->pEDDgpl->dhpdev == 0)
{
Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dc.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dc.c [iso-8859-1] Fri May 2 14:42:38
2008
@@ -553,7 +553,7 @@
PrimarySurface.ppdevNext = NULL; // Fixme! We need to support more than display
drvs.
PrimarySurface.ppdevParent = NULL; // Always NULL if primary.
PrimarySurface.pGraphicsDev = NULL; // Fixme!
- PrimarySurface.pEDDgpl = &edd_DdirectDraw_Global; // FIXME! We need to support
more than display drvs.
+ PrimarySurface.pEDDgpl = (PVOID)&edd_DdirectDraw_Global; // FIXME! We need to
support more than display drvs.
RtlZeroMemory( &edd_DdirectDraw_Global ,sizeof(EDD_DIRECTDRAW_GLOBAL));
ret = TRUE;
goto cleanup;