Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
24785b40
Commit
24785b40
authored
Mar 22, 2022
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Mar 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Use correct width and height in create_bitmap() helper.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fa3095d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
imagelist.c
dlls/comctl32/tests/imagelist.c
+4
-4
No files found.
dlls/comctl32/tests/imagelist.c
View file @
24785b40
...
...
@@ -948,8 +948,8 @@ static HBITMAP create_bitmap(INT cx, INT cy, COLORREF color, const char *comment
memset
(
&
bmi
,
0
,
sizeof
(
bmi
));
bmi
.
bmiHeader
.
biSize
=
sizeof
(
bmi
.
bmiHeader
);
bmi
.
bmiHeader
.
bi
Height
=
cx
;
bmi
.
bmiHeader
.
bi
Width
=
cy
;
bmi
.
bmiHeader
.
bi
Width
=
cx
;
bmi
.
bmiHeader
.
bi
Height
=
cy
;
bmi
.
bmiHeader
.
biBitCount
=
24
;
bmi
.
bmiHeader
.
biPlanes
=
1
;
bmi
.
bmiHeader
.
biCompression
=
BI_RGB
;
...
...
@@ -1156,7 +1156,7 @@ static void test_imagelist_storage(void)
himl
=
pImageList_Create
(
BMP_CX
,
BMP_CX
,
ILC_COLOR24
,
0
,
32
);
ok
(
himl
!=
0
,
"ImageList_Create failed
\n
"
);
check_iml_data
(
himl
,
BMP_CX
,
BMP_CX
,
0
,
1
,
32
,
ILC_COLOR24
,
"init 0 grow 32"
);
hbm
=
create_bitmap
(
BMP_CX
*
9
,
BMP_CX
,
0
,
"9"
);
hbm
=
create_bitmap
(
BMP_CX
,
BMP_CX
*
9
,
0
,
"9"
);
ret
=
pImageList_Add
(
himl
,
hbm
,
NULL
);
ok
(
ret
==
0
,
"ImageList_Add returned %d, expected 0
\n
"
,
ret
);
check_iml_data
(
himl
,
BMP_CX
,
BMP_CX
,
1
,
34
,
32
,
ILC_COLOR24
,
"add 1 x 9"
);
...
...
@@ -1167,7 +1167,7 @@ static void test_imagelist_storage(void)
himl
=
pImageList_Create
(
BMP_CX
,
BMP_CX
,
ILC_COLOR24
,
4
,
4
);
ok
(
himl
!=
0
,
"ImageList_Create failed
\n
"
);
check_iml_data
(
himl
,
BMP_CX
,
BMP_CX
,
0
,
5
,
4
,
ILC_COLOR24
,
"init 4 grow 4"
);
hbm
=
create_bitmap
(
BMP_CX
,
BMP_CX
*
9
,
0
,
"9"
);
hbm
=
create_bitmap
(
BMP_CX
*
9
,
BMP_CX
,
0
,
"9"
);
ret
=
pImageList_Add
(
himl
,
hbm
,
NULL
);
ok
(
ret
==
0
,
"ImageList_Add returned %d, expected 0
\n
"
,
ret
);
check_iml_data
(
himl
,
BMP_CX
,
BMP_CX
,
9
,
15
,
4
,
ILC_COLOR24
,
"add 9 x 1"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment