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
d3e8c930
Commit
d3e8c930
authored
May 20, 2007
by
David Adam
Committed by
Alexandre Julliard
May 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Implement D3DRMColorGetAlpha.
parent
d4007285
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletion
+16
-1
d3drm.spec
dlls/d3drm/d3drm.spec
+1
-1
math.c
dlls/d3drm/math.c
+6
-0
vector.c
dlls/d3drm/tests/vector.c
+8
-0
d3drmdef.h
include/d3drmdef.h
+1
-0
No files found.
dlls/d3drm/d3drm.spec
View file @
d3e8c930
@ st
ub D3DRMColorGetAlpha
@ st
dcall D3DRMColorGetAlpha(long)
@ stdcall D3DRMColorGetBlue(long)
@ stdcall D3DRMColorGetGreen(long)
@ stdcall D3DRMColorGetRed(long)
...
...
dlls/d3drm/math.c
View file @
d3e8c930
...
...
@@ -34,6 +34,12 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3drm
);
/* Determine the alpha part of a color */
D3DVALUE
WINAPI
D3DRMColorGetAlpha
(
D3DCOLOR
color
)
{
return
(
RGBA_GETALPHA
(
color
)
/
255
.
0
);
}
/* Determine the blue part of a color */
D3DVALUE
WINAPI
D3DRMColorGetBlue
(
D3DCOLOR
color
)
{
...
...
dlls/d3drm/tests/vector.c
View file @
d3e8c930
...
...
@@ -79,6 +79,7 @@ static LPD3DVECTOR (WINAPI * pD3DRMVectorScale)(LPD3DVECTOR, LPD3DVECTOR, D3DVAL
static
LPD3DVECTOR
(
WINAPI
*
pD3DRMVectorSubtract
)(
LPD3DVECTOR
,
LPD3DVECTOR
,
LPD3DVECTOR
);
static
LPD3DRMQUATERNION
(
WINAPI
*
pD3DRMQuaternionFromRotation
)(
LPD3DRMQUATERNION
,
LPD3DVECTOR
,
D3DVALUE
);
static
LPD3DRMQUATERNION
(
WINAPI
*
pD3DRMQuaternionSlerp
)(
LPD3DRMQUATERNION
,
LPD3DRMQUATERNION
,
LPD3DRMQUATERNION
,
D3DVALUE
);
static
D3DVALUE
(
WINAPI
*
pD3DRMColorGetAlpha
)(
D3DCOLOR
);
static
D3DVALUE
(
WINAPI
*
pD3DRMColorGetBlue
)(
D3DCOLOR
);
static
D3DVALUE
(
WINAPI
*
pD3DRMColorGetGreen
)(
D3DCOLOR
);
static
D3DVALUE
(
WINAPI
*
pD3DRMColorGetRed
)(
D3DCOLOR
);
...
...
@@ -113,6 +114,7 @@ static BOOL InitFunctionPtrs(void)
D3DRM_GET_PROC
(
D3DRMVectorSubtract
)
D3DRM_GET_PROC
(
D3DRMQuaternionFromRotation
)
D3DRM_GET_PROC
(
D3DRMQuaternionSlerp
)
D3DRM_GET_PROC
(
D3DRMColorGetAlpha
)
D3DRM_GET_PROC
(
D3DRMColorGetBlue
)
D3DRM_GET_PROC
(
D3DRMColorGetGreen
)
D3DRM_GET_PROC
(
D3DRMColorGetRed
)
...
...
@@ -257,6 +259,12 @@ static void ColorTest(void)
D3DCOLOR
color
;
D3DVALUE
expected
,
got
;
/*___________D3DRMColorGetAlpha_________________________*/
color
=
0x0e4921bf
;
expected
=
14
.
0
/
255
.
0
;
got
=
pD3DRMColorGetAlpha
(
color
);
ok
((
fabs
(
expected
-
got
)
<
admit_error
),
"Expected=%f, Got=%f
\n
"
,
expected
,
got
);
/*___________D3DRMColorGetBlue__________________________*/
color
=
0xc82a1455
;
expected
=
1
.
0
/
3
.
0
;
...
...
include/d3drmdef.h
View file @
d3e8c930
...
...
@@ -54,6 +54,7 @@ LPD3DVECTOR WINAPI D3DRMVectorReflect(LPD3DVECTOR, LPD3DVECTOR, LPD3DVECTOR);
LPD3DVECTOR
WINAPI
D3DRMVectorScale
(
LPD3DVECTOR
,
LPD3DVECTOR
,
D3DVALUE
);
LPD3DVECTOR
WINAPI
D3DRMVectorSubtract
(
LPD3DVECTOR
,
LPD3DVECTOR
,
LPD3DVECTOR
);
D3DVALUE
WINAPI
D3DRMColorGetAlpha
(
D3DCOLOR
);
D3DVALUE
WINAPI
D3DRMColorGetBlue
(
D3DCOLOR
);
D3DVALUE
WINAPI
D3DRMColorGetGreen
(
D3DCOLOR
);
D3DVALUE
WINAPI
D3DRMColorGetRed
(
D3DCOLOR
);
...
...
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