Author: tkreuzer
Date: Mon Aug 10 22:22:11 2009
New Revision: 42602
URL:
http://svn.reactos.org/svn/reactos?rev=42602&view=rev
Log:
Revert part of my last commit, this was testcode not meant to be committed.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/device.c
trunk/reactos/subsystems/win32/win32k/objects/dibobj.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/device.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/device.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/device.c [iso-8859-1] Mon Aug 10
22:22:11 2009
@@ -8,7 +8,7 @@
#include <w32k.h>
-#define YDEBUG
+#define NDEBUG
#include <debug.h>
// TODO: proper implementation of LDEVOBJ and PDEVOBJ interface
@@ -213,9 +213,6 @@
ULONG DisplayNumber;
LARGE_INTEGER Zero;
BOOLEAN ret = FALSE;
-
- DPRINT("IntPrepareDriver()\n");
-ASSERT(FALSE);
Zero.QuadPart = 0;
if (STATUS_SUCCESS != KeWaitForSingleObject(&VideoDriverNeedsPreparation,
Executive, KernelMode, TRUE, &Zero))
@@ -453,7 +450,7 @@
IO_STATUS_BLOCK Iosb;
BOOL Prepare = TRUE;
ULONG Length = sizeof(BOOL);
-// PIO_STACK_LOCATION StackPtr;
+ PIO_STACK_LOCATION StackPtr;
LARGE_INTEGER StartOffset;
PFILE_OBJECT FileObject = PrimarySurface.VideoFileObject;
PDEVICE_OBJECT DeviceObject = FileObject->DeviceObject;
@@ -478,16 +475,16 @@
}
/* Set up IRP Data */
-// Irp->Tail.Overlay.OriginalFileObject = FileObject;
-// Irp->RequestorMode = KernelMode;
-// Irp->Overlay.AsynchronousParameters.UserApcRoutine = NULL;
-// Irp->Overlay.AsynchronousParameters.UserApcContext = NULL;
-// Irp->Flags |= IRP_WRITE_OPERATION;
+ Irp->Tail.Overlay.OriginalFileObject = FileObject;
+ Irp->RequestorMode = KernelMode;
+ Irp->Overlay.AsynchronousParameters.UserApcRoutine = NULL;
+ Irp->Overlay.AsynchronousParameters.UserApcContext = NULL;
+ Irp->Flags |= IRP_WRITE_OPERATION;
/* Setup Stack Data */
-// StackPtr = IoGetNextIrpStackLocation(Irp);
-// StackPtr->FileObject = PrimarySurface.VideoFileObject;
-// StackPtr->Parameters.Write.Key = 0;
+ StackPtr = IoGetNextIrpStackLocation(Irp);
+ StackPtr->FileObject = PrimarySurface.VideoFileObject;
+ StackPtr->Parameters.Write.Key = 0;
Status = IoCallDriver(DeviceObject, Irp);
@@ -508,8 +505,6 @@
RECTL SurfaceRect;
SURFOBJ *SurfObj;
BOOL calledFromUser;
-
- DPRINT("IntCreatePrimarySurface()\n");
if (! IntPrepareDriverIfNeeded())
{
Modified: trunk/reactos/subsystems/win32/win32k/objects/dibobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dibobj.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dibobj.c [iso-8859-1] Mon Aug 10
22:22:11 2009
@@ -19,9 +19,6 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#if 0
-#include "dibbmp.c"
-#else
#include <w32k.h>
#define NDEBUG
@@ -1738,6 +1735,4 @@
return hPal;
}
-#endif
-
/* EOF */