From 834f019d59727d360b76417a0ee7af08e38d9007 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Sat, 26 Dec 2009 20:07:37 -0500 Subject: [PATCH 4/7] 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 5ab544d..2d4a890 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 0b22ab8..2dad101 100644 --- a/dlls/gdiplus/tests/image.c +++ b/dlls/gdiplus/tests/image.c @@ -868,7 +868,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); -- 1.6.3.3