gdiplus: Return success from the GdipSaveGraphics and GdipRestoreGraphics stubs.

This commit is contained in:
Hans Leidekker 2008-11-24 10:22:39 +01:00 committed by Alexandre Julliard
parent 1e170c9b85
commit df93d19d3d
2 changed files with 6 additions and 8 deletions

View File

@ -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,

View File

@ -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