Commit 66067423 authored by Nathan Beckmann's avatar Nathan Beckmann Committed by Alexandre Julliard

gdiplus: Fix errors in image dimensions.

parent 7cbdb298
...@@ -45,8 +45,7 @@ static INT ipicture_pixel_height(IPicture *pic) ...@@ -45,8 +45,7 @@ static INT ipicture_pixel_height(IPicture *pic)
hdcref = GetDC(0); hdcref = GetDC(0);
y = (UINT)(((REAL)y) * ((REAL)GetDeviceCaps(hdcref, LOGPIXELSY)) / y = MulDiv(y, GetDeviceCaps(hdcref, LOGPIXELSY), INCH_HIMETRIC);
((REAL)INCH_HIMETRIC));
ReleaseDC(0, hdcref); ReleaseDC(0, hdcref);
return y; return y;
...@@ -61,8 +60,7 @@ static INT ipicture_pixel_width(IPicture *pic) ...@@ -61,8 +60,7 @@ static INT ipicture_pixel_width(IPicture *pic)
hdcref = GetDC(0); hdcref = GetDC(0);
x = (UINT)(((REAL)x) * ((REAL)GetDeviceCaps(hdcref, LOGPIXELSX)) / x = MulDiv(x, GetDeviceCaps(hdcref, LOGPIXELSX), INCH_HIMETRIC);
((REAL)INCH_HIMETRIC));
ReleaseDC(0, hdcref); ReleaseDC(0, 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