gdiplus: Set actual resolution of an image being encoded.

This commit is contained in:
Dmitry Timoshkov 2012-07-20 19:52:36 +09:00 committed by Alexandre Julliard
parent 328383d4eb
commit 7bcfb02169
1 changed files with 1 additions and 2 deletions

View File

@ -3509,8 +3509,7 @@ static GpStatus encode_image_WIC(GpImage *image, IStream* stream,
hr = IWICBitmapFrameEncode_SetSize(frameencode, width, height);
if (SUCCEEDED(hr))
/* FIXME: use the resolution from the image */
hr = IWICBitmapFrameEncode_SetResolution(frameencode, 96.0, 96.0);
hr = IWICBitmapFrameEncode_SetResolution(frameencode, image->xres, image->yres);
if (SUCCEEDED(hr))
{