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