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
375dcaa8
Commit
375dcaa8
authored
Nov 19, 2007
by
David Adam
Committed by
Alexandre Julliard
Nov 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx8: Implement D3DXColorAdjustContrast.
parent
8389eab6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
1 deletion
+17
-1
d3dx8.spec
dlls/d3dx8/d3dx8.spec
+1
-1
math.c
dlls/d3dx8/math.c
+9
-0
math.c
dlls/d3dx8/tests/math.c
+5
-0
d3dx8math.h
include/d3dx8math.h
+2
-0
No files found.
dlls/d3dx8/d3dx8.spec
View file @
375dcaa8
...
...
@@ -67,7 +67,7 @@
@ stdcall D3DXPlaneFromPoints(ptr ptr ptr ptr)
@ stdcall D3DXPlaneTransform(ptr ptr ptr)
@ stdcall D3DXColorAdjustSaturation(ptr ptr long)
@ st
ub D3DXColorAdjustContrast
@ st
dcall D3DXColorAdjustContrast(ptr ptr long)
@ stub D3DXCreateMatrixStack
@ stdcall D3DXCreateFont(ptr ptr ptr)
@ stub D3DXCreateFontIndirect
...
...
dlls/d3dx8/math.c
View file @
375dcaa8
...
...
@@ -34,6 +34,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3dx8);
/*_________________D3DXColor____________________*/
D3DXCOLOR
*
WINAPI
D3DXColorAdjustContrast
(
D3DXCOLOR
*
pout
,
CONST
D3DXCOLOR
*
pc
,
FLOAT
s
)
{
pout
->
r
=
0
.
5
f
+
s
*
(
pc
->
r
-
0
.
5
f
);
pout
->
g
=
0
.
5
f
+
s
*
(
pc
->
g
-
0
.
5
f
);
pout
->
b
=
0
.
5
f
+
s
*
(
pc
->
b
-
0
.
5
f
);
pout
->
a
=
pc
->
a
;
return
pout
;
}
D3DXCOLOR
*
WINAPI
D3DXColorAdjustSaturation
(
D3DXCOLOR
*
pout
,
CONST
D3DXCOLOR
*
pc
,
FLOAT
s
)
{
FLOAT
grey
;
...
...
dlls/d3dx8/tests/math.c
View file @
375dcaa8
...
...
@@ -82,6 +82,11 @@ static void D3DXColorTest(void)
funcpointer
=
D3DXColorAdd
(
NULL
,
NULL
,
NULL
);
ok
(
funcpointer
==
NULL
,
"Expected: %p, Got: %p
\n
"
,
NULL
,
funcpointer
);
/*_______________D3DXColorAdjustContrast______*/
expected
.
r
=
0
.
41
f
;
expected
.
g
=
0
.
575
f
;
expected
.
b
=
0
.
473
f
,
expected
.
a
=
0
.
93
f
;
D3DXColorAdjustContrast
(
&
got
,
&
color
,
scale
);
expect_color
(
expected
,
got
);
/*_______________D3DXColorAdjustSaturation______*/
expected
.
r
=
0
.
486028
f
;
expected
.
g
=
0
.
651028
f
;
expected
.
b
=
0
.
549028
f
,
expected
.
a
=
0
.
93
f
;
D3DXColorAdjustSaturation
(
&
got
,
&
color
,
scale
);
...
...
include/d3dx8math.h
View file @
375dcaa8
...
...
@@ -263,7 +263,9 @@ typedef struct D3DXCOLOR
extern
"C"
{
#endif
D3DXCOLOR
*
WINAPI
D3DXColorAdjustContrast
(
D3DXCOLOR
*
pout
,
CONST
D3DXCOLOR
*
pc
,
FLOAT
s
);
D3DXCOLOR
*
WINAPI
D3DXColorAdjustSaturation
(
D3DXCOLOR
*
pout
,
CONST
D3DXCOLOR
*
pc
,
FLOAT
s
);
D3DXMATRIX
*
WINAPI
D3DXMatrixAffineTransformation
(
D3DXMATRIX
*
pout
,
float
scaling
,
D3DXVECTOR3
*
rotationcenter
,
D3DXQUATERNION
*
rotation
,
D3DXVECTOR3
*
translation
);
FLOAT
WINAPI
D3DXMatrixfDeterminant
(
CONST
D3DXMATRIX
*
pm
);
D3DXMATRIX
*
WINAPI
D3DXMatrixInverse
(
D3DXMATRIX
*
pout
,
FLOAT
*
pdeterminant
,
CONST
D3DXMATRIX
*
pm
);
...
...
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