[PATCH 7/9] gdi32: Handle metafiles directly in OffsetWindowOrgEx.
Huw Davies
huw at codeweavers.com
Tue Aug 10 01:40:07 CDT 2021
On Tue, Aug 10, 2021 at 12:57:55AM +0200, Jacek Caban wrote:
> +/***********************************************************************
> + * OffsetWindowOrgEx (GDI32.@)
> + */
> +BOOL WINAPI OffsetWindowOrgEx( HDC hdc, INT x, INT y, POINT *point )
> +{
> + DC_ATTR *dc_attr;
> +
> + if (is_meta_dc( hdc )) return METADC_OffsetWindowOrgEx( hdc, x, y );
> + if (!(dc_attr = get_dc_attr( hdc ))) return FALSE;
> + if (point) *point = dc_attr->vport_org;
> + dc_attr->vport_org.x += x;
> + dc_attr->vport_org.y += y;
> + if (dc_attr->emf && !EMFDC_SetViewportOrgEx( dc_attr, dc_attr->vport_org.x,
> + dc_attr->vport_org.y )) return FALSE;
> + return NtGdiComputeXformCoefficients( hdc );
> +}
vport_org -> wnd_org. I've fixed it up and sent in v2.
Thanks,
Huw.
More information about the wine-devel
mailing list