Commit Graph

113 Commits (2e62014896e5f8a8d2e06d3742a9d33c07fde1bd)

Author SHA1 Message Date
Nikolay Sivov 2e62014896 comctl32/imagelist: Implement IImageList::GetItemFlags().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-19 13:11:08 +01:00
Ziqing Hui d6305e1bdb comctl32/imagelist: Support flag ILS_SATURATE for ImageList_DrawIndirect().
Signed-off-by: Ziqing Hui <zhui@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-09 12:10:52 +01:00
Ziqing Hui 7a1727004b comctl32/tests: Add a 4x4 bitmap for ImageList_DrawIndirect tests.
Signed-off-by: Ziqing Hui <zhui@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-09 12:10:52 +01:00
Ziqing Hui e8c2e505a8 comctl32/tests: Add tests for grayscale.
Signed-off-by: Ziqing Hui <zhui@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-09 12:10:52 +01:00
Ziqing Hui d6268b9e88 comctl32/tests: Change create_test_bitmap() to give it the ability to create more kinds of bitmaps.
Signed-off-by: Ziqing Hui <zhui@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-09 12:10:52 +01:00
Ziqing Hui d26a23d740 comctl32/tests: Remove duplicate line in imagelist.c.
Signed-off-by: Ziqing Hui <zhui@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-04 09:52:49 +01:00
Ziqing Hui 61b9209221 comctl32/imagelist: Correctly handle alpha channel of 32bpp image.
Signed-off-by: Ziqing Hui <zhui@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-03 11:43:02 +01:00
Ziqing Hui 5784343db8 comctl32/tests: Add tests for alpha channel of imagelist.
Signed-off-by: Ziqing Hui <zhui@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-03 11:43:02 +01:00
Francois Gouget e0e119e41f comctl32: Typo and spelling fixes in comments.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-02 20:46:44 +02:00
Michael Stefaniuc e0419391d7 comctl32/tests: Remove redundant not-NULL check (coccinellery).
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-04 12:26:11 +01:00
Andrey Gusev 535ef08b67 comctl32/tests: Remove redundant assignment.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-04 17:03:39 +01:00
Michael Stefaniuc 04cb8d51a3 comctl32/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-06 21:18:42 +02:00
Mark Jansen f94d0e7b3a comctl32/tests: Prevent a possible nullptr dereference.
Signed-off-by: Mark Jansen <mark.jansen@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-19 12:35:11 +01:00
Nikolay Sivov 3845cc10e8 comctl32/tests: Link to comctl32.dll dynamically.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 16:03:00 +01:00
Nikolay Sivov 7902e43245 comctl32/tests: Enable cGrow field tests for version 6 serialization format.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-23 16:34:13 +01:00
Nikolay Sivov f09deaca43 comctl32/tests: Add a helper to replace macro.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-23 16:34:11 +01:00
Nikolay Sivov 60f5712b81 comctl32/tests: Test some return values (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-28 13:43:08 +01:00
Nikolay Sivov 8f2fd92328 comctl32/tests: Enable tests for version 6 imagelist serialization format.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-27 16:46:20 +01:00
Nikolay Sivov 3eea7ff3d2 comctl32/tests: Make sure v6 module is used when running tests, run more tests with v6 module.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-22 15:47:24 +01:00
Huw Davies 92e999f34b comctl32: Don't create a masked imagelist if CLR_NONE is specified.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-20 17:10:47 +01:00
Nikolay Sivov 377d0e26b3 comctl32/tests: Trace test name only of failure.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-21 13:58:13 +02:00
Michael Stefaniuc a6a9ec4459 comctl32/tests: Add an ImageList_Copy() test.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-05 16:40:47 +02:00
Nikolay Sivov a95dff6501 comctl32/tests: Use HGLOBAL stream to Read/Write tests on imagelists.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-01 19:52:58 +01:00
Huw Davies 2dd0fb880c comctl32: Correctly set the colour table for ILC_COLOR4 and ILC_COLOR8 imagelists.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 21:38:54 +01:00
Aric Stewart bcefe114e8 comctl32: ILC_COLORDDB imagelists can be created with 0 sizes.
Negative values are still invalid.

Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-20 22:19:29 +09:00
Nikolay Sivov eb6a872273 comctl32/tests: Enable visual tests in interactive mode, fix build failure.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-16 17:13:40 +09:00
Nikolay Sivov 490b4eec4b comctl32/tests: Fix function prototype (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-14 12:46:13 +09:00
Nikolay Sivov 44dbf381a7 comctl32/tests: Fix imagelist leak (Valgrind). 2014-12-01 11:00:20 +01:00
Michael Stefaniuc 89e9d6db33 comctl32/tests: Add some ImageList_BeginDrag() tests. 2014-10-07 10:14:25 +02:00
Nikolay Sivov f109a084e8 comctl32/imagelist: Update to IImageList2. 2014-06-12 13:19:06 +02:00
André Hentschel e32237d34a comctl32/tests: Avoid preprocessor checks to ensure it compiles. 2014-01-27 17:01:56 +01:00
Michael Stefaniuc 5092ecf6fe comctl32/tests: Finally compile with -D__WINESRC__. 2013-12-04 11:06:53 +01:00
Frédéric Delanoy fdb5e13f18 comctl32/tests: Use BOOL type where appropriate. 2013-11-14 16:20:42 +01:00
Nikolay Sivov 44ebba9d5e comctl32/tests: Preparation for switching __WINESRC__ on. 2013-10-22 20:19:17 +02:00
Michael Stefaniuc 9463dba830 tests: Use the explicit LoadLibraryA function. 2013-10-02 11:02:21 +02:00
Francois Gouget 47b56f238d comctl32/tests: Use ok(0) to report unexpected function calls instead of assert(0). 2013-07-03 21:20:03 +02:00
Daniel Jelinski cb8ce94e4d comctl32/imagelist: Use proper color format for merged image lists. 2013-03-08 19:35:21 +01:00
Marcus Meissner d8d83d2eb3 comctl32: Avoid leak of hShell32 (Coverity). 2013-01-09 12:54:39 +01:00
Michael Stefaniuc ab55448069 comctl32/tests: Get rid of a temp buffer. 2012-12-12 11:58:43 +01:00
Nikolay Sivov 21897a9689 comctl32: Call interface methods properly. 2012-08-20 10:58:45 +02:00
Michael Stefaniuc 175eaf1074 comctl32: Avoid TRUE:FALSE conditional expressions. 2012-08-13 17:29:01 +02:00
Alexandre Julliard ff71cc2ca4 comctl32: Fix management of imagelist growth amount. 2012-01-11 17:47:31 +01:00
Alexandre Julliard 9c9e8dd141 comctl32/tests: Fix a test failure on older Windows. 2011-12-16 19:47:27 +01:00
Alexandre Julliard 65b7eb2635 comctl32/tests: Add some more tests for ImageList_Write. 2011-12-16 17:40:27 +01:00
Francois Gouget 07cfe3ea51 comctl32/tests: Make impl_from_IStream() static. 2011-10-13 19:57:19 +02:00
Michael Stefaniuc d8213b468a comctl32/tests: Don't accept Win95 behavior. 2011-09-27 16:24:26 +02:00
Michael Stefaniuc af27b03967 comctl32/tests: Standardize COM in imagelist.c. 2011-09-27 16:24:26 +02:00
Francois Gouget 01378c5c8e comctl32: Don't crash when getting a bad image list handle. 2011-09-19 18:32:51 +02:00
Alexandre Julliard bd3b0e4f70 comctl32: Simplify the DIB byte width computation. 2011-08-29 12:08:21 +02:00
Marko Nikolic 7399177f0b comctl32/tests: Removed sign comparison warning in imagelist tests. 2011-06-06 16:18:21 +02:00