Commit 6a5bd0c2 authored by Wilfried Pasquazzo's avatar Wilfried Pasquazzo Committed by Alexandre Julliard

oleaut32: Respect size of icons when drawing with IPicture_Render.

parent 57b55a66
......@@ -684,7 +684,7 @@ static HRESULT WINAPI OLEPictureImpl_Render(IPicture *iface, HDC hdc,
break;
case PICTYPE_ICON:
FIXME("Not quite correct implementation of rendering icons...\n");
DrawIcon(hdc,x,y,This->desc.u.icon.hicon);
DrawIconEx(hdc, x, y, This->desc.u.icon.hicon, cx, cy, 0, NULL, DI_NORMAL);
break;
case PICTYPE_METAFILE:
......
......@@ -667,7 +667,7 @@ static void test_Render(void)
ok(result != 0x00F0F0F0,
"Color at 5,5 should have changed, but still was 0x%06X\n", result);
result = GetPixel(hdc, 10, 10);
todo_wine ok(result == 0x00F0F0F0,
ok(result == 0x00F0F0F0,
"Color at 10,10 should be unchanged 0xF0F0F0, but was 0x%06X\n", result);
IPicture_Release(pic);
......
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