gdi32: Use ntgdi interface for GetTransform and GetWorldTransform.

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-08-04 11:23:17 +02:00 committed by Alexandre Julliard
parent 48cd631413
commit b5780cbc5b
4 changed files with 12 additions and 18 deletions

View file

@ -881,21 +881,7 @@ INT WINAPI SetGraphicsMode( HDC hdc, INT mode )
/***********************************************************************
* GetWorldTransform (GDI32.@)
*/
BOOL WINAPI GetWorldTransform( HDC hdc, LPXFORM xform )
{
DC * dc;
if (!xform) return FALSE;
if (!(dc = get_dc_ptr( hdc ))) return FALSE;
*xform = dc->xformWorld2Wnd;
release_dc_ptr( dc );
return TRUE;
}
/***********************************************************************
* GetTransform (GDI32.@)
* NtGdiGetTransform (win32u.@)
*
* Undocumented
*
@ -911,7 +897,7 @@ BOOL WINAPI GetWorldTransform( HDC hdc, LPXFORM xform )
* xform [O] The xform.
*
*/
BOOL WINAPI GetTransform( HDC hdc, DWORD which, XFORM *xform )
BOOL WINAPI NtGdiGetTransform( HDC hdc, DWORD which, XFORM *xform )
{
BOOL ret = TRUE;
DC *dc = get_dc_ptr( hdc );

View file

@ -85,7 +85,7 @@ static BOOL emfdrv_stretchblt( PHYSDEV dev_dst, struct bitblt_coords *dst, PHYSD
emr_stretchblt->cySrc = src->log_height;
}
emr->dwRop = rop;
GetTransform(dev_src->hdc, 0x204, &emr->xformSrc);
NtGdiGetTransform( dev_src->hdc, 0x204, &emr->xformSrc );
emr->crBkColorSrc = GetBkColor(dev_src->hdc);
emr->iUsageSrc = DIB_RGB_COLORS;
emr->offBmiSrc = emr_size;

View file

@ -361,7 +361,7 @@
@ stdcall GetTextFaceW(long long ptr)
@ stdcall GetTextMetricsA(long ptr)
@ stdcall GetTextMetricsW(long ptr)
@ stdcall GetTransform(long long ptr)
@ stdcall GetTransform(long long ptr) NtGdiGetTransform
@ stdcall GetViewportExtEx(long ptr)
@ stdcall GetViewportOrgEx(long ptr)
@ stdcall GetWinMetaFileBits(long long ptr long long)

View file

@ -418,6 +418,14 @@ BOOL WINAPI GetViewportOrgEx( HDC hdc, POINT *point )
return TRUE;
}
/***********************************************************************
* GetWorldTransform (GDI32.@)
*/
BOOL WINAPI GetWorldTransform( HDC hdc, XFORM *xform )
{
return NtGdiGetTransform( hdc, 0x203, xform );
}
/***********************************************************************
* SetStretchBltMode (GDI32.@)
*/