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
b5ad5d35
Commit
b5ad5d35
authored
Jun 21, 2011
by
Huw Davies
Committed by
Alexandre Julliard
Jun 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add more broken behaviour on nt4 sp3.
parent
2672b0ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
bitmap.c
dlls/gdi32/tests/bitmap.c
+11
-4
No files found.
dlls/gdi32/tests/bitmap.c
View file @
b5ad5d35
...
...
@@ -1874,7 +1874,8 @@ static void test_GetDIBits_BI_BITFIELDS(void)
ok
(
ret
==
1
,
"GetDIBits failed
\n
"
);
ok
(
dibinfo
->
bmiHeader
.
biBitCount
==
32
,
"wrong bit count %u
\n
"
,
dibinfo
->
bmiHeader
.
biBitCount
);
ok
(
dibinfo
->
bmiHeader
.
biCompression
==
BI_BITFIELDS
,
ok
(
dibinfo
->
bmiHeader
.
biCompression
==
BI_BITFIELDS
||
broken
(
dibinfo
->
bmiHeader
.
biCompression
==
BI_RGB
),
/* nt4 sp3 */
"compression is %u
\n
"
,
dibinfo
->
bmiHeader
.
biCompression
);
ok
(
!
bitmasks
[
0
],
"red mask is set
\n
"
);
ok
(
!
bitmasks
[
1
],
"green mask is set
\n
"
);
...
...
@@ -1884,9 +1885,15 @@ static void test_GetDIBits_BI_BITFIELDS(void)
ret
=
GetDIBits
(
hdc
,
hbm
,
0
,
1
,
bits
,
dibinfo
,
DIB_RGB_COLORS
);
ok
(
ret
==
1
,
"GetDIBits failed
\n
"
);
ok
(
dibinfo
->
bmiHeader
.
biBitCount
==
32
,
"wrong bit count %u
\n
"
,
dibinfo
->
bmiHeader
.
biBitCount
);
ok
(
bitmasks
[
0
]
==
0xff0000
,
"wrong red mask %08x
\n
"
,
bitmasks
[
0
]
);
ok
(
bitmasks
[
1
]
==
0x00ff00
,
"wrong green mask %08x
\n
"
,
bitmasks
[
1
]
);
ok
(
bitmasks
[
2
]
==
0x0000ff
,
"wrong blue mask %08x
\n
"
,
bitmasks
[
2
]
);
ok
(
dibinfo
->
bmiHeader
.
biCompression
==
BI_BITFIELDS
||
broken
(
dibinfo
->
bmiHeader
.
biCompression
==
BI_RGB
),
/* nt4 sp3 */
"compression is %u
\n
"
,
dibinfo
->
bmiHeader
.
biCompression
);
if
(
dibinfo
->
bmiHeader
.
biCompression
==
BI_BITFIELDS
)
{
ok
(
bitmasks
[
0
]
==
0xff0000
,
"wrong red mask %08x
\n
"
,
bitmasks
[
0
]
);
ok
(
bitmasks
[
1
]
==
0x00ff00
,
"wrong green mask %08x
\n
"
,
bitmasks
[
1
]
);
ok
(
bitmasks
[
2
]
==
0x0000ff
,
"wrong blue mask %08x
\n
"
,
bitmasks
[
2
]
);
}
ok
(
dibinfo
->
bmiHeader
.
biSizeImage
!=
0xdeadbeef
,
"size image not set
\n
"
);
DeleteObject
(
hbm
);
...
...
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