gdiplus: Fix typo in GdipCreateMetafileFromWmf.

This commit is contained in:
Vincent Povirk 2009-12-26 20:07:37 -05:00 committed by Alexandre Julliard
parent 53a3307983
commit c38d334266
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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);