Commit 871d14f8 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

gdi32: Use get_dc_attr in GetGraphicsMode.

parent 6a2decc2
......@@ -983,22 +983,6 @@ BOOL WINAPI GetDCOrgEx( HDC hDC, LPPOINT lpp )
/***********************************************************************
* GetGraphicsMode (GDI32.@)
*/
INT WINAPI GetGraphicsMode( HDC hdc )
{
INT ret = 0;
DC * dc = get_dc_ptr( hdc );
if (dc)
{
ret = dc->attr->graphics_mode;
release_dc_ptr( dc );
}
return ret;
}
/***********************************************************************
* SetGraphicsMode (GDI32.@)
*/
INT WINAPI SetGraphicsMode( HDC hdc, INT mode )
......
......@@ -107,6 +107,15 @@ INT WINAPI SetBkMode( HDC hdc, INT mode )
}
/***********************************************************************
* GetGraphicsMode (GDI32.@)
*/
INT WINAPI GetGraphicsMode( HDC hdc )
{
DC_ATTR *dc_attr = get_dc_attr( hdc );
return dc_attr ? dc_attr->graphics_mode : 0;
}
/***********************************************************************
* GetLayout (GDI32.@)
*/
DWORD WINAPI GetLayout( HDC hdc )
......
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