- Very basic implementation of ExtEscape

svn path=/trunk/; revision=8092
This commit is contained in:
Filip Navara 2004-02-08 16:16:24 +00:00
parent a99ec32abd
commit 671f7f1315
3 changed files with 48 additions and 30 deletions

View file

@ -1,4 +1,4 @@
/* $Id: stubs.c,v 1.46 2004/01/24 08:23:12 ekohl Exp $ /* $Id: stubs.c,v 1.47 2004/02/08 16:16:24 navaraf Exp $
* *
* reactos/lib/gdi32/misc/stubs.c * reactos/lib/gdi32/misc/stubs.c
* *
@ -162,25 +162,6 @@ Escape(
} }
/*
* @unimplemented
*/
int
STDCALL
ExtEscape(
HDC a0,
int a1,
int a2,
LPCSTR a3,
int a4,
LPSTR a5
)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/* /*
* @unimplemented * @unimplemented
*/ */

View file

@ -907,3 +907,20 @@ RectVisible(
{ {
return NtGdiRectVisible(a0,(RECT *)a1); return NtGdiRectVisible(a0,(RECT *)a1);
} }
/*
* @implemented
*/
int
STDCALL
ExtEscape(
HDC a0,
int a1,
int a2,
LPCSTR a3,
int a4,
LPSTR a5
)
{
return NtGdiExtEscape(a0, a1, a2, a3, a4, a5);
}

View file

@ -16,11 +16,13 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: print.c,v 1.11 2003/08/19 11:48:50 weiden Exp $ */ /* $Id: print.c,v 1.12 2004/02/08 16:16:24 navaraf Exp $ */
#undef WIN32_LEAN_AND_MEAN #undef WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include <ddk/ntddk.h> #include <ddk/ntddk.h>
#include <win32k/print.h> #include <win32k/print.h>
#include <win32k/dc.h>
#define NDEBUG #define NDEBUG
#include <win32k/debug1.h> #include <win32k/debug1.h>
@ -57,16 +59,34 @@ NtGdiEscape(HDC hDC,
UNIMPLEMENTED; UNIMPLEMENTED;
} }
INT INT STDCALL
STDCALL NtGdiExtEscape(
NtGdiExtEscape(HDC hDC, HDC hDC,
INT Escape, INT Escape,
INT InSize, INT InSize,
LPCSTR InData, LPCSTR InData,
INT OutSize, INT OutSize,
LPSTR OutData) LPSTR OutData)
{ {
UNIMPLEMENTED; PDC pDC = DC_LockDc(hDC);
INT Result;
if (pDC == NULL)
{
return -1;
}
Result = pDC->DriverFunctions.Escape(
pDC->Surface,
Escape,
InSize,
(PVOID)InData,
OutSize,
(PVOID)OutData);
DC_UnlockDc(hDC);
return Result;
} }
INT INT