oleaut32: Respect size of icons when drawing with IPicture_Render.
This commit is contained in:
parent
57b55a661d
commit
6a5bd0c2ed
|
@ -684,7 +684,7 @@ static HRESULT WINAPI OLEPictureImpl_Render(IPicture *iface, HDC hdc,
|
||||||
break;
|
break;
|
||||||
case PICTYPE_ICON:
|
case PICTYPE_ICON:
|
||||||
FIXME("Not quite correct implementation of rendering icons...\n");
|
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;
|
break;
|
||||||
|
|
||||||
case PICTYPE_METAFILE:
|
case PICTYPE_METAFILE:
|
||||||
|
|
|
@ -667,7 +667,7 @@ static void test_Render(void)
|
||||||
ok(result != 0x00F0F0F0,
|
ok(result != 0x00F0F0F0,
|
||||||
"Color at 5,5 should have changed, but still was 0x%06X\n", result);
|
"Color at 5,5 should have changed, but still was 0x%06X\n", result);
|
||||||
result = GetPixel(hdc, 10, 10);
|
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);
|
"Color at 10,10 should be unchanged 0xF0F0F0, but was 0x%06X\n", result);
|
||||||
|
|
||||||
IPicture_Release(pic);
|
IPicture_Release(pic);
|
||||||
|
|
Loading…
Reference in New Issue