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
267f6126
Commit
267f6126
authored
Feb 27, 2023
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Make the gamma ramp failures more unique.
Otherwise the only way to identify which failure happened is to check its line number which is not practical across versions.
parent
390ed160
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
dc.c
dlls/gdi32/tests/dc.c
+7
-7
No files found.
dlls/gdi32/tests/dc.c
View file @
267f6126
...
...
@@ -1268,37 +1268,37 @@ static void test_gamma(void)
/* set one color ramp to zeros */
memset
(
ramp
[
0
],
0
,
sizeof
(
ramp
[
0
]));
ret
=
SetDeviceGammaRamp
(
hdc
,
&
ramp
);
ok
(
!
ret
,
"SetDeviceGammaRamp succeeded
\n
"
);
ok
(
!
ret
,
"SetDeviceGammaRamp
(zeroes)
succeeded
\n
"
);
/* set one color ramp to a flat straight rising line */
for
(
i
=
0
;
i
<
256
;
i
++
)
ramp
[
0
][
i
]
=
i
;
ret
=
SetDeviceGammaRamp
(
hdc
,
&
ramp
);
todo_wine
ok
(
!
ret
,
"SetDeviceGammaRamp succeeded
\n
"
);
todo_wine
ok
(
!
ret
,
"SetDeviceGammaRamp
(low)
succeeded
\n
"
);
/* set one color ramp to a steep straight rising line */
for
(
i
=
0
;
i
<
256
;
i
++
)
ramp
[
0
][
i
]
=
i
*
256
;
ret
=
SetDeviceGammaRamp
(
hdc
,
&
ramp
);
ok
(
ret
,
"SetDeviceGammaRamp failed
\n
"
);
ok
(
ret
,
"SetDeviceGammaRamp
(steep)
failed
\n
"
);
/* try a bright gamma ramp */
ramp
[
0
][
0
]
=
0
;
ramp
[
0
][
1
]
=
0x7FFF
;
for
(
i
=
2
;
i
<
256
;
i
++
)
ramp
[
0
][
i
]
=
0xFFFF
;
ret
=
SetDeviceGammaRamp
(
hdc
,
&
ramp
);
ok
(
!
ret
,
"SetDeviceGammaRam
p
succeeded
\n
"
);
ok
(
!
ret
,
"SetDeviceGammaRam
(bright)
succeeded
\n
"
);
/* try ramps which are not uniform */
for
(
i
=
0
;
i
<
256
;
i
++
)
ramp
[
0
][
i
]
=
512
*
i
;
/* wraps midway */
ret
=
SetDeviceGammaRamp
(
hdc
,
&
ramp
);
ok
(
ret
,
"SetDeviceGammaRamp failed
\n
"
);
ok
(
ret
,
"SetDeviceGammaRamp
(wrap)
failed
\n
"
);
for
(
i
=
0
;
i
<
256
;
i
+=
2
)
ramp
[
0
][
i
]
=
ramp
[
0
][
i
+
1
]
=
256
*
i
;
/* stairs */
ret
=
SetDeviceGammaRamp
(
hdc
,
&
ramp
);
ok
(
ret
,
"SetDeviceGammaRamp failed
\n
"
);
ok
(
ret
,
"SetDeviceGammaRamp
(stairs)
failed
\n
"
);
/* cleanup: set old ramp again */
ret
=
SetDeviceGammaRamp
(
hdc
,
&
oldramp
);
ok
(
ret
,
"SetDeviceGammaRamp failed
\n
"
);
ok
(
ret
,
"SetDeviceGammaRamp
(old)
failed
\n
"
);
done:
ReleaseDC
(
NULL
,
hdc
);
...
...
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