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
221c04d0
Commit
221c04d0
authored
Aug 28, 2017
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Add a test for image flags to PNG grayscale image tests.
Signed-off-by:
Vincent Povirk
<
vincent@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9369e800
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
image.c
dlls/gdiplus/tests/image.c
+15
-6
No files found.
dlls/gdiplus/tests/image.c
View file @
221c04d0
...
...
@@ -4980,22 +4980,24 @@ static void test_png_color_formats(void)
{
char
bit_depth
,
color_type
;
PixelFormat
format
;
UINT
flags
;
}
td
[]
=
{
/* 2 - PNG_COLOR_TYPE_RGB */
{
8
,
2
,
PixelFormat24bppRGB
},
{
8
,
2
,
PixelFormat24bppRGB
,
ImageFlagsColorSpaceRGB
},
/* 0 - PNG_COLOR_TYPE_GRAY */
{
1
,
0
,
PixelFormat1bppIndexed
},
{
2
,
0
,
PixelFormat32bppARGB
},
{
4
,
0
,
PixelFormat32bppARGB
},
{
8
,
0
,
PixelFormat32bppARGB
},
{
16
,
0
,
PixelFormat32bppARGB
},
{
1
,
0
,
PixelFormat1bppIndexed
,
ImageFlagsColorSpaceRGB
},
{
2
,
0
,
PixelFormat32bppARGB
,
ImageFlagsColorSpaceGRAY
},
{
4
,
0
,
PixelFormat32bppARGB
,
ImageFlagsColorSpaceGRAY
},
{
8
,
0
,
PixelFormat32bppARGB
,
ImageFlagsColorSpaceGRAY
},
{
16
,
0
,
PixelFormat32bppARGB
,
ImageFlagsColorSpaceGRAY
},
};
BYTE
buf
[
sizeof
(
png_1x1_data
)];
GpStatus
status
;
GpImage
*
image
;
ImageType
type
;
PixelFormat
format
;
UINT
flags
;
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
td
)
/
sizeof
(
td
[
0
]);
i
++
)
...
...
@@ -5018,6 +5020,13 @@ static void test_png_color_formats(void)
broken
(
td
[
i
].
bit_depth
==
1
&&
td
[
i
].
color_type
==
0
&&
format
==
PixelFormat32bppARGB
),
/* XP */
"%d: expected %#x, got %#x
\n
"
,
i
,
td
[
i
].
format
,
format
);
status
=
GdipGetImageFlags
(
image
,
&
flags
);
expect
(
Ok
,
status
);
todo_wine_if
(
td
[
i
].
bit_depth
>
1
&&
td
[
i
].
color_type
==
0
)
ok
((
flags
&
td
[
i
].
flags
)
==
td
[
i
].
flags
||
broken
(
td
[
i
].
bit_depth
==
1
&&
td
[
i
].
color_type
==
0
&&
(
flags
&
ImageFlagsColorSpaceGRAY
)),
/* XP */
"%d: expected %#x, got %#x
\n
"
,
i
,
td
[
i
].
flags
,
flags
);
GdipDisposeImage
(
image
);
}
}
...
...
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