Module: wine Branch: master Commit: c38d33426670ff04ddfa677b8fce800737c14880 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c38d33426670ff04ddfa677b8f...
Author: Vincent Povirk vincent@codeweavers.com Date: Sat Dec 26 20:07:37 2009 -0500
gdiplus: Fix typo in GdipCreateMetafileFromWmf.
---
dlls/gdiplus/graphics.c | 2 +- dlls/gdiplus/tests/image.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 7d5caf8..f7a8eaf 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -1263,7 +1263,7 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmf(HMETAFILE hwmf, BOOL delete, (*metafile)->image.palette_size = 0; (*metafile)->image.palette_entries = NULL; (*metafile)->bounds.X = ((REAL) placeable->BoundingBox.Left) / ((REAL) placeable->Inch); - (*metafile)->bounds.Y = ((REAL) placeable->BoundingBox.Right) / ((REAL) placeable->Inch); + (*metafile)->bounds.Y = ((REAL) placeable->BoundingBox.Top) / ((REAL) placeable->Inch); (*metafile)->bounds.Width = ((REAL) (placeable->BoundingBox.Right - placeable->BoundingBox.Left)) / ((REAL) placeable->Inch); (*metafile)->bounds.Height = ((REAL) (placeable->BoundingBox.Bottom diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c index e35d3a3..67a2fa8 100644 --- a/dlls/gdiplus/tests/image.c +++ b/dlls/gdiplus/tests/image.c @@ -874,7 +874,7 @@ static void test_createfromwmf(void) expect(Ok, stat); todo_wine expect(UnitPixel, unit); expectf(0.0, bounds.X); - todo_wine expectf(0.0, bounds.Y); + expectf(0.0, bounds.Y); todo_wine expectf(320.0, bounds.Width); todo_wine expectf(320.0, bounds.Height);