Commit 7bcfb021 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdiplus: Set actual resolution of an image being encoded.

parent 328383d4
......@@ -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))
{
......
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