Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
23b00490
Commit
23b00490
authored
Oct 15, 2010
by
Austin Lund
Committed by
Alexandre Julliard
Oct 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Fix ImageList tests for different device color depths.
parent
f793d2cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
imagelist.c
dlls/comctl32/tests/imagelist.c
+11
-6
No files found.
dlls/comctl32/tests/imagelist.c
View file @
23b00490
...
@@ -1209,6 +1209,7 @@ static void test_ImageList_DrawIndirect(void)
...
@@ -1209,6 +1209,7 @@ static void test_ImageList_DrawIndirect(void)
int
iImage
=
-
1
,
iAlphaImage
=
-
1
,
iTransparentImage
=
-
1
;
int
iImage
=
-
1
,
iAlphaImage
=
-
1
,
iTransparentImage
=
-
1
;
UINT32
*
bits
=
0
;
UINT32
*
bits
=
0
;
UINT32
maskBits
=
0x00000000
,
inverseMaskBits
=
0xFFFFFFFF
;
UINT32
maskBits
=
0x00000000
,
inverseMaskBits
=
0xFFFFFFFF
;
int
bpp
,
broken_value
;
BITMAPINFO
bitmapInfo
=
{{
sizeof
(
BITMAPINFOHEADER
),
2
,
1
,
1
,
32
,
BI_RGB
,
BITMAPINFO
bitmapInfo
=
{{
sizeof
(
BITMAPINFOHEADER
),
2
,
1
,
1
,
32
,
BI_RGB
,
0
,
0
,
0
,
0
,
0
}};
0
,
0
,
0
,
0
,
0
}};
...
@@ -1217,6 +1218,7 @@ static void test_ImageList_DrawIndirect(void)
...
@@ -1217,6 +1218,7 @@ static void test_ImageList_DrawIndirect(void)
ok
(
hdcDst
!=
0
,
"CreateCompatibleDC(0) failed to return a valid DC
\n
"
);
ok
(
hdcDst
!=
0
,
"CreateCompatibleDC(0) failed to return a valid DC
\n
"
);
if
(
!
hdcDst
)
if
(
!
hdcDst
)
return
;
return
;
bpp
=
GetDeviceCaps
(
hdcDst
,
BITSPIXEL
);
hbmMask
=
CreateBitmap
(
2
,
1
,
1
,
1
,
&
maskBits
);
hbmMask
=
CreateBitmap
(
2
,
1
,
1
,
1
,
&
maskBits
);
ok
(
hbmMask
!=
0
,
"CreateBitmap failed
\n
"
);
ok
(
hbmMask
!=
0
,
"CreateBitmap failed
\n
"
);
...
@@ -1265,19 +1267,22 @@ static void test_ImageList_DrawIndirect(void)
...
@@ -1265,19 +1267,22 @@ static void test_ImageList_DrawIndirect(void)
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iImage
,
ILD_NORMAL
,
0x00ABCDEF
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iImage
,
ILD_NORMAL
,
0x00ABCDEF
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iImage
,
ILD_TRANSPARENT
,
0x00ABCDEF
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iImage
,
ILD_TRANSPARENT
,
0x00ABCDEF
,
__LINE__
);
todo_wine
check_ImageList_DrawIndirect_broken
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_BLEND25
,
ILS_NORMAL
,
0
,
0x00E8F1FA
,
0x00D4D9DD
,
__LINE__
);
todo_wine
check_ImageList_DrawIndirect_broken
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_BLEND25
,
ILS_NORMAL
,
0
,
0x00E8F1FA
,
0x00D4D9DD
,
__LINE__
);
todo_wine
check_ImageList_DrawIndirect_broken
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_BLEND50
,
ILS_NORMAL
,
0
,
0x00E8F1FA
,
0x00B4BDC4
,
__LINE__
);
if
(
bpp
==
16
||
bpp
==
24
)
broken_value
=
0x00D4D9DD
;
else
broken_value
=
0x00B4BDC4
;
todo_wine
check_ImageList_DrawIndirect_broken
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_BLEND50
,
ILS_NORMAL
,
0
,
0x00E8F1FA
,
broken_value
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iImage
,
ILD_MASK
,
0x00ABCDEF
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iImage
,
ILD_MASK
,
0x00ABCDEF
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iImage
,
ILD_IMAGE
,
0x00ABCDEF
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iImage
,
ILD_IMAGE
,
0x00ABCDEF
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iImage
,
ILD_PRESERVEALPHA
,
0x00ABCDEF
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iImage
,
ILD_PRESERVEALPHA
,
0x00ABCDEF
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_NORMAL
,
0x00D3E5F7
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_NORMAL
,
0x00D3E5F7
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_TRANSPARENT
,
0x00D3E5F7
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_TRANSPARENT
,
0x00D3E5F7
,
__LINE__
);
todo_wine
{
check_ImageList_DrawIndirect_broken
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_BLEND25
,
ILS_NORMAL
,
0
,
0x00E8F1FA
,
0x009DA8B1
,
__LINE__
);
check_ImageList_DrawIndirect_broken
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_BLEND50
,
ILS_NORMAL
,
0
,
0x00E8F1FA
,
0x008C99A3
,
__LINE__
);
}
if
(
bpp
==
16
||
bpp
==
24
)
broken_value
=
0x00D4D9DD
;
else
broken_value
=
0x009DA8B1
;
todo_wine
check_ImageList_DrawIndirect_broken
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_BLEND25
,
ILS_NORMAL
,
0
,
0x00E8F1FA
,
broken_value
,
__LINE__
);
if
(
bpp
==
16
||
bpp
==
24
)
broken_value
=
0x00D4D9DD
;
else
broken_value
=
0x008C99A3
;
todo_wine
check_ImageList_DrawIndirect_broken
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_BLEND50
,
ILS_NORMAL
,
0
,
0x00E8F1FA
,
broken_value
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_MASK
,
0x00D3E5F7
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_MASK
,
0x00D3E5F7
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_IMAGE
,
0x00D3E5F7
,
__LINE__
);
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_IMAGE
,
0x00D3E5F7
,
__LINE__
);
todo_wine
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_PRESERVEALPHA
,
0x005D6F81
,
__LINE__
);
todo_wine
check_ImageList_DrawIndirect_fStyle
(
hdcDst
,
himl
,
bits
,
iAlphaImage
,
ILD_PRESERVEALPHA
,
0x005D6F81
,
__LINE__
);
...
...
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