Commit df93d19d authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

gdiplus: Return success from the GdipSaveGraphics and GdipRestoreGraphics stubs.

parent 1e170c9b
......@@ -2788,7 +2788,7 @@ GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics *graphics, GraphicsState stat
if(!(calls++))
FIXME("graphics state not implemented\n");
return NotImplemented;
return Ok;
}
GpStatus WINGDIPAPI GdipRotateWorldTransform(GpGraphics *graphics, REAL angle,
......@@ -2815,7 +2815,8 @@ GpStatus WINGDIPAPI GdipSaveGraphics(GpGraphics *graphics, GraphicsState *state)
if(!(calls++))
FIXME("graphics state not implemented\n");
return NotImplemented;
*state = 0xdeadbeef;
return Ok;
}
GpStatus WINGDIPAPI GdipScaleWorldTransform(GpGraphics *graphics, REAL sx,
......
......@@ -130,12 +130,10 @@ static void test_save_restore(void)
GdipCreateFromHDC(hdc, &graphics1);
GdipSetInterpolationMode(graphics1, InterpolationModeBilinear);
stat = GdipSaveGraphics(graphics1, &state_a);
todo_wine
expect(Ok, stat);
expect(Ok, stat);
GdipSetInterpolationMode(graphics1, InterpolationModeBicubic);
stat = GdipRestoreGraphics(graphics1, state_a);
todo_wine
expect(Ok, stat);
expect(Ok, stat);
GdipGetInterpolationMode(graphics1, &mode);
todo_wine
expect(InterpolationModeBilinear, mode);
......@@ -151,8 +149,7 @@ static void test_save_restore(void)
GdipSaveGraphics(graphics1, &state_b);
GdipSetInterpolationMode(graphics1, InterpolationModeNearestNeighbor);
stat = GdipRestoreGraphics(graphics1, 0xdeadbeef);
todo_wine
expect(Ok, stat);
expect(Ok, stat);
GdipRestoreGraphics(graphics1, state_b);
GdipGetInterpolationMode(graphics1, &mode);
todo_wine
......
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