• Dmitry Timoshkov's avatar
    oleaut32/tests: Fix the IPicture::Render() usage. · 4b525aa0
    Dmitry Timoshkov authored
    When one specifies the target rectangle (0, 0, width, -height)
    IPicture::Render() places the origin at 0,0 and flips the image
    vertically. This means that in order to paint an icon on the DC
    it's necessary to specify the rectangle (0, height, width, -height),
    i.e. place the origin at 0,height. I've written a test app that
    verifies this behaviour, ufortunately I don't see a way to add
    a Wine test case for this.
    
    The test currently works by chance under Windows because in case
    of (0, 0, width, -height) IPicture::Render() draws black rectangle
    instead of an icon at (0, 0, width, height). If Wine intends to
    replicate this behaviour it should be fixed by a separate patch.
    Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    4b525aa0
Name
Last commit
Last update
..
Makefile.in Loading commit data...
dispatch.c Loading commit data...
olefont.c Loading commit data...
olepicture.c Loading commit data...
safearray.c Loading commit data...
test_reg.idl Loading commit data...
test_tlb.idl Loading commit data...
tmarshal.c Loading commit data...
tmarshal.idl Loading commit data...
tmarshal.rc Loading commit data...
tmarshal_dispids.h Loading commit data...
typelib.c Loading commit data...
usrmarshal.c Loading commit data...
varformat.c Loading commit data...
vartest.c Loading commit data...
vartype.c Loading commit data...