gdi32: Introduce NtGdiLineTo.
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:
parent
dae60a374e
commit
c1f63c0894
|
@ -31,6 +31,7 @@ C_SRCS = \
|
|||
enhmfdrv/objects.c \
|
||||
font.c \
|
||||
freetype.c \
|
||||
gdidc.c \
|
||||
gdiobj.c \
|
||||
icm.c \
|
||||
mapping.c \
|
||||
|
|
|
@ -22,6 +22,12 @@
|
|||
#ifndef __WINE_GDI_PRIVATE_H
|
||||
#define __WINE_GDI_PRIVATE_H
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "ntgdi.h"
|
||||
|
||||
void set_gdi_client_ptr( HGDIOBJ handle, void *ptr ) DECLSPEC_HIDDEN;
|
||||
void *get_gdi_client_ptr( HGDIOBJ handle, WORD type ) DECLSPEC_HIDDEN;
|
||||
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* GDI Device Context functions
|
||||
*
|
||||
* Copyright 1993, 1994 Alexandre Julliard
|
||||
* Copyright 1997 Bertho A. Stultiens
|
||||
* 1999 Huw D M Davies
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include "gdi_private.h"
|
||||
#include "wine/debug.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(gdi);
|
||||
|
||||
/***********************************************************************
|
||||
* LineTo (GDI32.@)
|
||||
*/
|
||||
BOOL WINAPI LineTo( HDC hdc, INT x, INT y )
|
||||
{
|
||||
TRACE( "%p, (%d, %d)\n", hdc, x, y );
|
||||
return NtGdiLineTo( hdc, x, y );
|
||||
}
|
|
@ -19,12 +19,8 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "gdi_private.h"
|
||||
#include "winnls.h"
|
||||
#include "ntgdi.h"
|
||||
#include "winternl.h"
|
||||
|
||||
#include "wine/debug.h"
|
||||
|
|
|
@ -226,16 +226,14 @@ BOOL CDECL nulldrv_PolylineTo( PHYSDEV dev, const POINT *points, INT count )
|
|||
}
|
||||
|
||||
/***********************************************************************
|
||||
* LineTo (GDI32.@)
|
||||
* NtGdiLineTo (win32u.@)
|
||||
*/
|
||||
BOOL WINAPI LineTo( HDC hdc, INT x, INT y )
|
||||
BOOL WINAPI NtGdiLineTo( HDC hdc, INT x, INT y )
|
||||
{
|
||||
DC * dc = get_dc_ptr( hdc );
|
||||
PHYSDEV physdev;
|
||||
BOOL ret;
|
||||
|
||||
TRACE( "%p, (%d, %d)\n", hdc, x, y );
|
||||
|
||||
if(!dc) return FALSE;
|
||||
|
||||
update_dc( dc );
|
||||
|
|
Loading…
Reference in New Issue