Commit 86708b36 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdi32/emf: Add SetBrushOrgEx() recording.

parent a6a9419a
...@@ -1060,6 +1060,7 @@ BOOL WINAPI SetBrushOrgEx( HDC hdc, INT x, INT y, POINT *oldorg ) ...@@ -1060,6 +1060,7 @@ BOOL WINAPI SetBrushOrgEx( HDC hdc, INT x, INT y, POINT *oldorg )
{ {
DC_ATTR *dc_attr; DC_ATTR *dc_attr;
if (!(dc_attr = get_dc_attr( hdc ))) return FALSE; if (!(dc_attr = get_dc_attr( hdc ))) return FALSE;
if (dc_attr->emf && !EMFDC_SetBrushOrgEx( dc_attr, x, y )) return FALSE;
if (oldorg) *oldorg = dc_attr->brush_org; if (oldorg) *oldorg = dc_attr->brush_org;
dc_attr->brush_org.x = x; dc_attr->brush_org.x = x;
dc_attr->brush_org.y = y; dc_attr->brush_org.y = y;
......
...@@ -2129,6 +2129,16 @@ BOOL EMFDC_SetBkColor( DC_ATTR *dc_attr, COLORREF color ) ...@@ -2129,6 +2129,16 @@ BOOL EMFDC_SetBkColor( DC_ATTR *dc_attr, COLORREF color )
return emfdc_record( get_dc_emf( dc_attr ), &emr.emr ); return emfdc_record( get_dc_emf( dc_attr ), &emr.emr );
} }
BOOL EMFDC_SetBrushOrgEx( DC_ATTR *dc_attr, INT x, INT y )
{
EMRSETBRUSHORGEX emr;
emr.emr.iType = EMR_SETBRUSHORGEX;
emr.emr.nSize = sizeof(emr);
emr.ptlOrigin.x = x;
emr.ptlOrigin.y = y;
return emfdc_record( get_dc_emf( dc_attr ), &emr.emr );
}
BOOL EMFDC_SetTextColor( DC_ATTR *dc_attr, COLORREF color ) BOOL EMFDC_SetTextColor( DC_ATTR *dc_attr, COLORREF color )
{ {
......
...@@ -233,6 +233,7 @@ BOOL EMFDC_SelectPalette( DC_ATTR *dc_attr, HPALETTE palette ); ...@@ -233,6 +233,7 @@ BOOL EMFDC_SelectPalette( DC_ATTR *dc_attr, HPALETTE palette );
BOOL EMFDC_SetArcDirection( DC_ATTR *dc_attr, INT dir ); BOOL EMFDC_SetArcDirection( DC_ATTR *dc_attr, INT dir );
BOOL EMFDC_SetBkColor( DC_ATTR *dc_attr, COLORREF color ); BOOL EMFDC_SetBkColor( DC_ATTR *dc_attr, COLORREF color );
BOOL EMFDC_SetBkMode( DC_ATTR *dc_attr, INT mode ); BOOL EMFDC_SetBkMode( DC_ATTR *dc_attr, INT mode );
BOOL EMFDC_SetBrushOrgEx( DC_ATTR *dc_attr, INT x, INT y );
BOOL EMFDC_SetDCBrushColor( DC_ATTR *dc_attr, COLORREF color ); BOOL EMFDC_SetDCBrushColor( DC_ATTR *dc_attr, COLORREF color );
BOOL EMFDC_SetDCPenColor( DC_ATTR *dc_attr, COLORREF color ); BOOL EMFDC_SetDCPenColor( DC_ATTR *dc_attr, COLORREF color );
INT EMFDC_SetDIBitsToDevice( DC_ATTR *dc_attr, INT x_dest, INT y_dest, DWORD width, DWORD height, INT EMFDC_SetDIBitsToDevice( DC_ATTR *dc_attr, INT x_dest, INT y_dest, DWORD width, DWORD height,
......
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