[WIN32K]
[reactos.git] / reactos / subsystems / win32 / win32k / objects / print.c
index bc56a2f..6377c5e 100644 (file)
@@ -18,7 +18,7 @@
  */
 /* $Id$ */
 
-#include <w32k.h>
+#include <win32k.h>
 
 #define NDEBUG
 #include <debug.h>
@@ -87,23 +87,6 @@ NtGdiEscape(HDC  hDC,
   return ret;
 }
 
-INT
-APIENTRY
-IntEngExtEscape(
-   SURFOBJ *Surface,
-   INT      Escape,
-   INT      InSize,
-   LPVOID   InData,
-   INT      OutSize,
-   LPVOID   OutData)
-{
-   if (Escape == QUERYESCSUPPORT)
-      return FALSE;
-
-   DPRINT1("IntEngExtEscape is unimplemented. - Keep going and have a nice day\n");
-   return -1;
-}
-
 INT
 APIENTRY
 IntGdiExtEscape(
@@ -117,22 +100,14 @@ IntGdiExtEscape(
    SURFACE *psurf = dc->dclevel.pSurface;
    INT Result;
 
-   /* FIXME - Handle psurf == NULL !!!!!! */
-
-   if ( NULL == dc->ppdev->DriverFunctions.Escape )
+   if (!dc->ppdev->DriverFunctions.Escape)
    {
-      Result = IntEngExtEscape(
-         &psurf->SurfObj,
-         Escape,
-         InSize,
-         (PVOID)((ULONG_PTR)InData),
-         OutSize,
-         (PVOID)OutData);
+      Result = 0;
    }
    else
    {
       Result = dc->ppdev->DriverFunctions.Escape(
-         &psurf->SurfObj,
+         psurf ? &psurf->SurfObj : NULL,
          Escape,
          InSize,
          (PVOID)InData,