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

gdi32: Use ntgdi interface for GetTransform and GetWorldTransform.

parent 48cd6314
......@@ -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 );
......
......@@ -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;
......
......@@ -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)
......
......@@ -419,6 +419,14 @@ BOOL WINAPI GetViewportOrgEx( HDC hdc, POINT *point )
}
/***********************************************************************
* GetWorldTransform (GDI32.@)
*/
BOOL WINAPI GetWorldTransform( HDC hdc, XFORM *xform )
{
return NtGdiGetTransform( hdc, 0x203, xform );
}
/***********************************************************************
* SetStretchBltMode (GDI32.@)
*/
INT WINAPI SetStretchBltMode( HDC hdc, INT mode )
......
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