[PATCH] Fix a typo in height conversion

Nikolay Sivov nsivov at codeweavers.com
Tue Aug 24 13:29:12 CDT 2010


---
 dlls/oleaut32/olepicture.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index 4dd25fb..bd93ffa 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -215,8 +215,8 @@ static void OLEPictureImpl_SetBitmap(OLEPictureImpl *This)
   /* Should we use GetBitmapDimension if available? */
   hdcRef = CreateCompatibleDC(0);
 
-  This->himetricWidth = xpixels_to_himetric(bm.bmWidth, hdcRef);
-  This->himetricHeight = xpixels_to_himetric(bm.bmHeight, hdcRef);
+  This->himetricWidth  = xpixels_to_himetric(bm.bmWidth, hdcRef);
+  This->himetricHeight = ypixels_to_himetric(bm.bmHeight, hdcRef);
 
   DeleteDC(hdcRef);
 }
-- 
1.5.6.5



--------------090206060401060701070605--



More information about the wine-patches mailing list