Commit b8f99cab authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

oleaut32/olepicture: Fix a typo in height conversion.

parent c37f6fb1
...@@ -215,8 +215,8 @@ static void OLEPictureImpl_SetBitmap(OLEPictureImpl *This) ...@@ -215,8 +215,8 @@ static void OLEPictureImpl_SetBitmap(OLEPictureImpl *This)
/* Should we use GetBitmapDimension if available? */ /* Should we use GetBitmapDimension if available? */
hdcRef = CreateCompatibleDC(0); hdcRef = CreateCompatibleDC(0);
This->himetricWidth = xpixels_to_himetric(bm.bmWidth, hdcRef); This->himetricWidth = xpixels_to_himetric(bm.bmWidth, hdcRef);
This->himetricHeight = xpixels_to_himetric(bm.bmHeight, hdcRef); This->himetricHeight = ypixels_to_himetric(bm.bmHeight, hdcRef);
DeleteDC(hdcRef); DeleteDC(hdcRef);
} }
......
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