Commit 27532568 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

gdi32: Use NtGdiSetPixelFormat for GdiSetPixelFormat implementation.

parent d92f26ed
......@@ -444,3 +444,12 @@ BOOL WINAPI CloseFigure( HDC hdc )
if (dc_attr->emf && !EMFDC_CloseFigure( dc_attr )) return FALSE;
return NtGdiCloseFigure( hdc );
}
/***********************************************************************
* GdiSetPixelFormat (GDI32.@)
*/
BOOL WINAPI GdiSetPixelFormat( HDC hdc, INT format, const PIXELFORMATDESCRIPTOR *descr )
{
TRACE( "(%p,%d,%p)\n", hdc, format, descr );
return NtGdiSetPixelFormat( hdc, format );
}
......@@ -434,17 +434,15 @@ COLORREF WINAPI NtGdiGetPixel( HDC hdc, INT x, INT y )
/******************************************************************************
* GdiSetPixelFormat [GDI32.@]
* NtGdiSetPixelFormat (win32u.@)
*
* Probably not the correct semantics, it's supposed to be an internal backend for SetPixelFormat.
*/
BOOL WINAPI GdiSetPixelFormat( HDC hdc, INT format, const PIXELFORMATDESCRIPTOR *descr )
BOOL WINAPI NtGdiSetPixelFormat( HDC hdc, INT format )
{
DC *dc;
BOOL ret = TRUE;
TRACE("(%p,%d,%p)\n", hdc, format, descr);
if (!(dc = get_dc_ptr( hdc ))) return FALSE;
if (!dc->pixel_format) dc->pixel_format = format;
......
......@@ -220,7 +220,7 @@ DWORD WINAPI NtGdiSetLayout( HDC hdc, DWORD layout );
INT WINAPI NtGdiSetMetaRgn( HDC hdc );
BOOL WINAPI NtGdiSetMiterLimit( HDC hdc, FLOAT limit, FLOAT *prev_limit );
COLORREF WINAPI NtGdiSetPixel( HDC hdc, INT x, INT y, COLORREF color );
BOOL WINAPI NtGdiSetPixelFormat( HDC hdc, INT format, const PIXELFORMATDESCRIPTOR *descr );
BOOL WINAPI NtGdiSetPixelFormat( HDC hdc, INT format );
BOOL WINAPI NtGdiSetRectRgn( HRGN hrgn, INT left, INT top, INT right, INT bottom );
BOOL WINAPI NtGdiSetTextJustification( HDC hdc, INT extra, INT breaks );
BOOL WINAPI NtGdiSetVirtualResolution( HDC hdc, DWORD horz_res, DWORD vert_res,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment