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
3d461dbe
Commit
3d461dbe
authored
Mar 09, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Mar 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Win9x's GetDIBits() sets biSizeImage to zero for BI_RGB dibs.
parent
f7608053
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
bitmap.c
dlls/gdi32/tests/bitmap.c
+12
-4
No files found.
dlls/gdi32/tests/bitmap.c
View file @
3d461dbe
...
...
@@ -1564,7 +1564,9 @@ static void test_GetDIBits(void)
lines
=
GetDIBits
(
hdc
,
hbmp
,
0
,
bm
.
bmHeight
,
buf
,
bi
,
DIB_RGB_COLORS
);
ok
(
lines
==
bm
.
bmHeight
,
"GetDIBits copied %d lines of %d, error %u
\n
"
,
lines
,
bm
.
bmHeight
,
GetLastError
());
ok
(
bi
->
bmiHeader
.
biSizeImage
==
sizeof
(
dib_bits_1
),
"expected 16*4, got %u
\n
"
,
bi
->
bmiHeader
.
biSizeImage
);
ok
(
bi
->
bmiHeader
.
biSizeImage
==
sizeof
(
dib_bits_1
)
||
broken
(
bi
->
bmiHeader
.
biSizeImage
==
0
),
/* win9x */
"expected 16*4, got %u
\n
"
,
bi
->
bmiHeader
.
biSizeImage
);
/* the color table consists of black and white */
ok
(
bi
->
bmiColors
[
0
].
rgbRed
==
0
&&
bi
->
bmiColors
[
0
].
rgbGreen
==
0
&&
...
...
@@ -1614,7 +1616,9 @@ static void test_GetDIBits(void)
lines
=
GetDIBits
(
hdc
,
hbmp
,
0
,
bm
.
bmHeight
,
buf
,
bi
,
DIB_RGB_COLORS
);
ok
(
lines
==
bm
.
bmHeight
,
"GetDIBits copied %d lines of %d, error %u
\n
"
,
lines
,
bm
.
bmHeight
,
GetLastError
());
ok
(
bi
->
bmiHeader
.
biSizeImage
==
sizeof
(
dib_bits_24
),
"expected 16*16*3, got %u
\n
"
,
bi
->
bmiHeader
.
biSizeImage
);
ok
(
bi
->
bmiHeader
.
biSizeImage
==
sizeof
(
dib_bits_24
)
||
broken
(
bi
->
bmiHeader
.
biSizeImage
==
0
),
/* win9x */
"expected 16*16*3, got %u
\n
"
,
bi
->
bmiHeader
.
biSizeImage
);
/* the color table doesn't exist for 24-bit images */
for
(
i
=
0
;
i
<
256
;
i
++
)
...
...
@@ -1675,7 +1679,9 @@ static void test_GetDIBits(void)
lines
=
GetDIBits
(
hdc
,
hbmp
,
0
,
bm
.
bmHeight
,
buf
,
bi
,
DIB_RGB_COLORS
);
ok
(
lines
==
bm
.
bmHeight
,
"GetDIBits copied %d lines of %d, error %u
\n
"
,
lines
,
bm
.
bmHeight
,
GetLastError
());
ok
(
bi
->
bmiHeader
.
biSizeImage
==
sizeof
(
dib_bits_1
),
"expected 16*4, got %u
\n
"
,
bi
->
bmiHeader
.
biSizeImage
);
ok
(
bi
->
bmiHeader
.
biSizeImage
==
sizeof
(
dib_bits_1
)
||
broken
(
bi
->
bmiHeader
.
biSizeImage
==
0
),
/* win9x */
"expected 16*4, got %u
\n
"
,
bi
->
bmiHeader
.
biSizeImage
);
/* the color table consists of black and white */
ok
(
bi
->
bmiColors
[
0
].
rgbRed
==
0
&&
bi
->
bmiColors
[
0
].
rgbGreen
==
0
&&
...
...
@@ -1726,7 +1732,9 @@ todo_wine
lines
=
GetDIBits
(
hdc
,
hbmp
,
0
,
bm
.
bmHeight
,
buf
,
bi
,
DIB_RGB_COLORS
);
ok
(
lines
==
bm
.
bmHeight
,
"GetDIBits copied %d lines of %d, error %u
\n
"
,
lines
,
bm
.
bmHeight
,
GetLastError
());
ok
(
bi
->
bmiHeader
.
biSizeImage
==
sizeof
(
dib_bits_24
),
"expected 16*16*3, got %u
\n
"
,
bi
->
bmiHeader
.
biSizeImage
);
ok
(
bi
->
bmiHeader
.
biSizeImage
==
sizeof
(
dib_bits_24
)
||
broken
(
bi
->
bmiHeader
.
biSizeImage
==
0
),
/* win9x */
"expected 16*16*3, got %u
\n
"
,
bi
->
bmiHeader
.
biSizeImage
);
/* the color table doesn't exist for 24-bit images */
for
(
i
=
0
;
i
<
256
;
i
++
)
...
...
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