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

gdi32: Use get_dc_attr in SetMiterLimit.

parent 06dd790c
......@@ -1539,30 +1539,6 @@ BOOL WINAPI CancelDC(HDC hdc)
}
/*******************************************************************
* SetMiterLimit [GDI32.@]
*
*
*/
BOOL WINAPI SetMiterLimit(HDC hdc, FLOAT eNewLimit, PFLOAT peOldLimit)
{
BOOL bRet = FALSE;
DC *dc;
TRACE("(%p,%f,%p)\n", hdc, eNewLimit, peOldLimit);
dc = get_dc_ptr( hdc );
if (dc)
{
if (peOldLimit)
*peOldLimit = dc->attr->miter_limit;
dc->attr->miter_limit = eNewLimit;
release_dc_ptr( dc );
bRet = TRUE;
}
return bRet;
}
/*******************************************************************
* GdiIsMetaPrintDC [GDI32.@]
*/
BOOL WINAPI GdiIsMetaPrintDC(HDC hdc)
......
......@@ -339,6 +339,19 @@ BOOL WINAPI GetMiterLimit( HDC hdc, FLOAT *limit )
return TRUE;
}
/*******************************************************************
* SetMiterLimit (GDI32.@)
*/
BOOL WINAPI SetMiterLimit( HDC hdc, FLOAT limit, FLOAT *old_limit )
{
DC_ATTR *dc_attr;
if (!(dc_attr = get_dc_attr( hdc ))) return FALSE;
/* FIXME: record EMFs */
if (old_limit) *old_limit = dc_attr->miter_limit;
dc_attr->miter_limit = limit;
return TRUE;
}
/***********************************************************************
* SetPixel (GDI32.@)
*/
......
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