comctl32/imagelist: use proper color format for merged image lists (try 2)

Daniel Jelinski djelinski1 at
Tue Mar 5 14:23:11 CST 2013

No surprises in mask behavior - the result is always masked. On the
other hand, merging ILC_COLOR16 with ILC_COLORDDB (which is 32bit)
results in 16bit image:
All other merges (including reverse of the above = ILC_COLORDDB with
ILC_COLOR16) use the greater of the color depths from source

Any idea what might be happening there?

2013/3/5 Alexandre Julliard <julliard at>:
> Daniel Jelinski <djelinski1 at> writes:
>> +static void test_merge_colors(void)
>> +{
>> +    HIMAGELIST himl[5], hmerge;
>> +    int sizes[] = { ILC_COLOR4, ILC_COLOR8, ILC_COLOR16, ILC_COLOR24, ILC_COLOR32 };
> You should also test COLORDDB, and probably the mask behavior too.
> --
> Alexandre Julliard
> julliard at

More information about the wine-devel mailing list