gdiplus: Implement GdipResetPenTransform.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
36c068193d
commit
0f94756728
|
@ -419,17 +419,14 @@ GpStatus WINGDIPAPI GdipGetPenWidth(GpPen *pen, REAL *width)
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipResetPenTransform(GpPen *pen)
|
GpStatus WINGDIPAPI GdipResetPenTransform(GpPen *pen)
|
||||||
{
|
{
|
||||||
static int calls;
|
|
||||||
|
|
||||||
TRACE("(%p)\n", pen);
|
TRACE("(%p)\n", pen);
|
||||||
|
|
||||||
if(!pen)
|
if(!pen)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
if(!(calls++))
|
GdipSetMatrixElements(&pen->transform, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0);
|
||||||
FIXME("(%p) stub\n", pen);
|
|
||||||
|
|
||||||
return NotImplemented;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipSetPenTransform(GpPen *pen, GpMatrix *matrix)
|
GpStatus WINGDIPAPI GdipSetPenTransform(GpPen *pen, GpMatrix *matrix)
|
||||||
|
|
|
@ -409,20 +409,20 @@ static void test_transform(void)
|
||||||
expectf(3.0, values[5]);
|
expectf(3.0, values[5]);
|
||||||
|
|
||||||
status = GdipResetPenTransform(pen);
|
status = GdipResetPenTransform(pen);
|
||||||
todo_wine expect(Ok, status);
|
expect(Ok, status);
|
||||||
|
|
||||||
status = GdipGetPenTransform(pen, matrix);
|
status = GdipGetPenTransform(pen, matrix);
|
||||||
expect(Ok, status);
|
expect(Ok, status);
|
||||||
status = GdipGetMatrixElements(matrix, values);
|
status = GdipGetMatrixElements(matrix, values);
|
||||||
expect(Ok, status);
|
expect(Ok, status);
|
||||||
todo_wine {
|
|
||||||
expectf(1.0, values[0]);
|
expectf(1.0, values[0]);
|
||||||
expectf(0.0, values[1]);
|
expectf(0.0, values[1]);
|
||||||
expectf(0.0, values[2]);
|
expectf(0.0, values[2]);
|
||||||
expectf(1.0, values[3]);
|
expectf(1.0, values[3]);
|
||||||
expectf(0.0, values[4]);
|
expectf(0.0, values[4]);
|
||||||
expectf(0.0, values[5]);
|
expectf(0.0, values[5]);
|
||||||
}
|
|
||||||
GdipDeletePen(pen);
|
GdipDeletePen(pen);
|
||||||
|
|
||||||
GdipDeleteMatrix(matrix);
|
GdipDeleteMatrix(matrix);
|
||||||
|
|
Loading…
Reference in New Issue