Commit 142dc48a authored by Jeff Smith's avatar Jeff Smith Committed by Alexandre Julliard

gdiplus: Implement GdipResetPageTransform.

parent 73aed1b5
......@@ -7536,14 +7536,27 @@ cleanup:
GpStatus WINGDIPAPI GdipResetPageTransform(GpGraphics *graphics)
{
static int calls;
GpStatus stat;
TRACE("(%p) stub\n", graphics);
TRACE("(%p)\n", graphics);
if(!(calls++))
FIXME("not implemented\n");
if(!graphics)
return InvalidParameter;
return NotImplemented;
if(graphics->busy)
return ObjectBusy;
if (is_metafile_graphics(graphics))
{
stat = METAFILE_SetPageTransform((GpMetafile*)graphics->image, UnitDisplay, 1.0);
if (stat != Ok)
return stat;
}
graphics->scale = 1.0;
graphics->unit = UnitDisplay;
return Ok;
}
GpStatus WINGDIPAPI GdipGraphicsSetAbort(GpGraphics *graphics, GdiplusAbort *pabort)
......
......@@ -1829,7 +1829,6 @@ static void test_Get_Release_DC(void)
status = GdipResetClip(graphics);
expect(ObjectBusy, status);
status = GdipResetPageTransform(graphics);
todo_wine
expect(ObjectBusy, status);
status = GdipResetWorldTransform(graphics);
expect(ObjectBusy, status);
......@@ -4139,15 +4138,12 @@ static void test_set_page_transform(void)
expect(Ok, status);
expectf_(2.0, scale, 0);
status = GdipResetPageTransform(graphics);
todo_wine
expect(Ok, status);
status = GdipGetPageUnit(graphics, &unit);
expect(Ok, status);
todo_wine
expect(UnitDisplay, unit);
status = GdipGetPageScale(graphics, &scale);
expect(Ok, status);
todo_wine
expectf_(1.0, scale, 0);
GdipDeleteGraphics(graphics);
......
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