Commit 0f947567 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

gdiplus: Implement GdipResetPenTransform.

parent 36c06819
......@@ -419,17 +419,14 @@ GpStatus WINGDIPAPI GdipGetPenWidth(GpPen *pen, REAL *width)
GpStatus WINGDIPAPI GdipResetPenTransform(GpPen *pen)
{
static int calls;
TRACE("(%p)\n", pen);
if(!pen)
return InvalidParameter;
if(!(calls++))
FIXME("(%p) stub\n", pen);
GdipSetMatrixElements(&pen->transform, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0);
return NotImplemented;
return Ok;
}
GpStatus WINGDIPAPI GdipSetPenTransform(GpPen *pen, GpMatrix *matrix)
......
......@@ -409,20 +409,20 @@ static void test_transform(void)
expectf(3.0, values[5]);
status = GdipResetPenTransform(pen);
todo_wine expect(Ok, status);
expect(Ok, status);
status = GdipGetPenTransform(pen, matrix);
expect(Ok, status);
status = GdipGetMatrixElements(matrix, values);
expect(Ok, status);
todo_wine {
expectf(1.0, values[0]);
expectf(0.0, values[1]);
expectf(0.0, values[2]);
expectf(1.0, values[3]);
expectf(0.0, values[4]);
expectf(0.0, values[5]);
}
GdipDeletePen(pen);
GdipDeleteMatrix(matrix);
......
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