Commit c38d3342 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Fix typo in GdipCreateMetafileFromWmf.

parent 53a33079
...@@ -1263,7 +1263,7 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmf(HMETAFILE hwmf, BOOL delete, ...@@ -1263,7 +1263,7 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmf(HMETAFILE hwmf, BOOL delete,
(*metafile)->image.palette_size = 0; (*metafile)->image.palette_size = 0;
(*metafile)->image.palette_entries = NULL; (*metafile)->image.palette_entries = NULL;
(*metafile)->bounds.X = ((REAL) placeable->BoundingBox.Left) / ((REAL) placeable->Inch); (*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 (*metafile)->bounds.Width = ((REAL) (placeable->BoundingBox.Right
- placeable->BoundingBox.Left)) / ((REAL) placeable->Inch); - placeable->BoundingBox.Left)) / ((REAL) placeable->Inch);
(*metafile)->bounds.Height = ((REAL) (placeable->BoundingBox.Bottom (*metafile)->bounds.Height = ((REAL) (placeable->BoundingBox.Bottom
......
...@@ -874,7 +874,7 @@ static void test_createfromwmf(void) ...@@ -874,7 +874,7 @@ static void test_createfromwmf(void)
expect(Ok, stat); expect(Ok, stat);
todo_wine expect(UnitPixel, unit); todo_wine expect(UnitPixel, unit);
expectf(0.0, bounds.X); 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.Width);
todo_wine expectf(320.0, bounds.Height); todo_wine expectf(320.0, bounds.Height);
......
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