gdi32: Use ntgdi interface for printer driver functions.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-09-02 14:15:53 +02:00 committed by Alexandre Julliard
parent 800cde3cf4
commit ef7b2a1b8b
2 changed files with 41 additions and 12 deletions

View file

@ -1888,6 +1888,38 @@ INT WINAPI StartDocA( HDC hdc, const DOCINFOA *doc )
return ret;
}
/***********************************************************************
* StartPage (GDI32.@)
*/
INT WINAPI StartPage( HDC hdc )
{
return NtGdiStartPage( hdc );
}
/***********************************************************************
* EndPage (GDI32.@)
*/
INT WINAPI EndPage( HDC hdc )
{
return NtGdiEndPage( hdc );
}
/***********************************************************************
* EndDoc (GDI32.@)
*/
INT WINAPI EndDoc( HDC hdc )
{
return NtGdiEndDoc( hdc );
}
/***********************************************************************
* AbortDoc (GDI32.@)
*/
INT WINAPI AbortDoc( HDC hdc )
{
return NtGdiAbortDoc( hdc );
}
/**********************************************************************
* SetAbortProc (GDI32.@)
*/

View file

@ -81,10 +81,9 @@ INT WINAPI NtGdiStartDoc( HDC hdc, const DOCINFOW *doc, BOOL *banding, INT job )
/******************************************************************
* EndDoc [GDI32.@]
*
* NtGdiEndDoc (win32u.@)
*/
INT WINAPI EndDoc(HDC hdc)
INT WINAPI NtGdiEndDoc( HDC hdc )
{
INT ret = SP_ERROR;
DC *dc = get_dc_ptr( hdc );
@ -100,10 +99,9 @@ INT WINAPI EndDoc(HDC hdc)
/******************************************************************
* StartPage [GDI32.@]
*
* NtGdiStartPage (win32u.@)
*/
INT WINAPI StartPage(HDC hdc)
INT WINAPI NtGdiStartPage( HDC hdc )
{
INT ret = SP_ERROR;
DC *dc = get_dc_ptr( hdc );
@ -119,10 +117,9 @@ INT WINAPI StartPage(HDC hdc)
/******************************************************************
* EndPage [GDI32.@]
*
* NtGdiEndPage (win32u.@)
*/
INT WINAPI EndPage(HDC hdc)
INT WINAPI NtGdiEndPage( HDC hdc )
{
INT ret = SP_ERROR;
DC *dc = get_dc_ptr( hdc );
@ -137,10 +134,10 @@ INT WINAPI EndPage(HDC hdc)
}
/******************************************************************************
* AbortDoc [GDI32.@]
/***********************************************************************
* NtGdiAbortDoc (win32u.@)
*/
INT WINAPI AbortDoc(HDC hdc)
INT WINAPI NtGdiAbortDoc( HDC hdc )
{
INT ret = SP_ERROR;
DC *dc = get_dc_ptr( hdc );