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
73c24405
Commit
73c24405
authored
Feb 03, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Feb 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Fix a test failure.
parent
3825abbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
image.c
dlls/gdiplus/tests/image.c
+13
-1
No files found.
dlls/gdiplus/tests/image.c
View file @
73c24405
...
@@ -30,6 +30,18 @@
...
@@ -30,6 +30,18 @@
#define expect(expected, got) ok((UINT)(got) == (UINT)(expected), "Expected %.8x, got %.8x\n", (UINT)(expected), (UINT)(got))
#define expect(expected, got) ok((UINT)(got) == (UINT)(expected), "Expected %.8x, got %.8x\n", (UINT)(expected), (UINT)(got))
#define expectf(expected, got) ok(fabs(expected - got) < 0.0001, "Expected %.2f, got %.2f\n", expected, got)
#define expectf(expected, got) ok(fabs(expected - got) < 0.0001, "Expected %.2f, got %.2f\n", expected, got)
static
BOOL
color_match
(
ARGB
c1
,
ARGB
c2
,
BYTE
max_diff
)
{
if
(
abs
((
c1
&
0xff
)
-
(
c2
&
0xff
))
>
max_diff
)
return
FALSE
;
c1
>>=
8
;
c2
>>=
8
;
if
(
abs
((
c1
&
0xff
)
-
(
c2
&
0xff
))
>
max_diff
)
return
FALSE
;
c1
>>=
8
;
c2
>>=
8
;
if
(
abs
((
c1
&
0xff
)
-
(
c2
&
0xff
))
>
max_diff
)
return
FALSE
;
c1
>>=
8
;
c2
>>=
8
;
if
(
abs
((
c1
&
0xff
)
-
(
c2
&
0xff
))
>
max_diff
)
return
FALSE
;
return
TRUE
;
}
static
void
expect_guid
(
REFGUID
expected
,
REFGUID
got
,
int
line
,
BOOL
todo
)
static
void
expect_guid
(
REFGUID
expected
,
REFGUID
got
,
int
line
,
BOOL
todo
)
{
{
WCHAR
bufferW
[
39
];
WCHAR
bufferW
[
39
];
...
@@ -1468,7 +1480,7 @@ static void test_gamma(void)
...
@@ -1468,7 +1480,7 @@ static void test_gamma(void)
stat
=
GdipBitmapGetPixel
(
bitmap2
,
0
,
0
,
&
color
);
stat
=
GdipBitmapGetPixel
(
bitmap2
,
0
,
0
,
&
color
);
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
todo_wine
expect
(
0xff20ffff
,
color
);
todo_wine
ok
(
color_match
(
0xff20ffff
,
color
,
1
),
"Expected ff20ffff, got %.8x
\n
"
,
color
);
GdipDeleteGraphics
(
graphics
);
GdipDeleteGraphics
(
graphics
);
GdipDisposeImage
((
GpImage
*
)
bitmap1
);
GdipDisposeImage
((
GpImage
*
)
bitmap1
);
...
...
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