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
6edfd108
Commit
6edfd108
authored
Apr 17, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Remove unused variables.
parent
c6a7fd44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
executebuffer.c
dlls/ddraw/executebuffer.c
+2
-9
No files found.
dlls/ddraw/executebuffer.c
View file @
6edfd108
...
...
@@ -401,9 +401,7 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This,
unsigned
int
nb
;
D3DVERTEX
*
src
=
((
LPD3DVERTEX
)
((
char
*
)
This
->
desc
.
lpData
+
vs
))
+
ci
->
wStart
;
D3DTLVERTEX
*
dst
=
((
LPD3DTLVERTEX
)
(
This
->
vertex_data
))
+
ci
->
wDest
;
D3DMATRIX
*
mat2
=
&
world_mat
;
D3DMATRIX
mat
;
D3DVALUE
nx
,
ny
,
nz
;
D3DVIEWPORT
*
Viewport
=
&
lpViewport
->
viewports
.
vp1
;
if
(
TRACE_ON
(
d3d7
))
{
...
...
@@ -419,18 +417,13 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This,
multiply_matrix
(
&
mat
,
&
proj_mat
,
&
mat
);
for
(
nb
=
0
;
nb
<
ci
->
dwCount
;
nb
++
)
{
/* Normals transformation */
nx
=
(
src
->
u4
.
nx
*
mat2
->
_11
)
+
(
src
->
u5
.
ny
*
mat2
->
_21
)
+
(
src
->
u6
.
nz
*
mat2
->
_31
);
ny
=
(
src
->
u4
.
nx
*
mat2
->
_12
)
+
(
src
->
u5
.
ny
*
mat2
->
_22
)
+
(
src
->
u6
.
nz
*
mat2
->
_32
);
nz
=
(
src
->
u4
.
nx
*
mat2
->
_13
)
+
(
src
->
u5
.
ny
*
mat2
->
_23
)
+
(
src
->
u6
.
nz
*
mat2
->
_33
);
/* No lighting yet */
dst
->
u5
.
color
=
0xFFFFFFFF
;
/* Opaque white */
dst
->
u6
.
specular
=
0xFF000000
;
/* No specular and no fog factor */
dst
->
u7
.
tu
=
src
->
u7
.
tu
;
dst
->
u8
.
tv
=
src
->
u8
.
tv
;
/* Now, the matrix multiplication */
dst
->
u1
.
sx
=
(
src
->
u1
.
x
*
mat
.
_11
)
+
(
src
->
u2
.
y
*
mat
.
_21
)
+
(
src
->
u3
.
z
*
mat
.
_31
)
+
(
1
.
0
*
mat
.
_41
);
dst
->
u2
.
sy
=
(
src
->
u1
.
x
*
mat
.
_12
)
+
(
src
->
u2
.
y
*
mat
.
_22
)
+
(
src
->
u3
.
z
*
mat
.
_32
)
+
(
1
.
0
*
mat
.
_42
);
...
...
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