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
e2d8e291
Commit
e2d8e291
authored
Mar 23, 2008
by
Alexander Dorofeyev
Committed by
Alexandre Julliard
Mar 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Fix vertex processing.
parent
94949ab8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
executebuffer.c
dlls/ddraw/executebuffer.c
+9
-6
No files found.
dlls/ddraw/executebuffer.c
View file @
e2d8e291
...
...
@@ -437,9 +437,9 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This,
dst
->
u3
.
sz
=
(
src
->
u1
.
x
*
mat
.
_13
)
+
(
src
->
u2
.
y
*
mat
.
_23
)
+
(
src
->
u3
.
z
*
mat
.
_33
)
+
(
1
.
0
*
mat
.
_43
);
dst
->
u4
.
rhw
=
(
src
->
u1
.
x
*
mat
.
_14
)
+
(
src
->
u2
.
y
*
mat
.
_24
)
+
(
src
->
u3
.
z
*
mat
.
_34
)
+
(
1
.
0
*
mat
.
_44
);
dst
->
u1
.
sx
=
dst
->
u1
.
sx
/
dst
->
u4
.
rhw
*
Viewport
->
d
wWidth
/
2
dst
->
u1
.
sx
=
dst
->
u1
.
sx
/
dst
->
u4
.
rhw
*
Viewport
->
d
vScaleX
+
Viewport
->
dwX
+
Viewport
->
dwWidth
/
2
;
dst
->
u2
.
sy
=
(
-
dst
->
u2
.
sy
)
/
dst
->
u4
.
rhw
*
Viewport
->
d
wHeight
/
2
dst
->
u2
.
sy
=
(
-
dst
->
u2
.
sy
)
/
dst
->
u4
.
rhw
*
Viewport
->
d
vScaleY
+
Viewport
->
dwY
+
Viewport
->
dwHeight
/
2
;
dst
->
u3
.
sz
/=
dst
->
u4
.
rhw
;
dst
->
u4
.
rhw
=
1
/
dst
->
u4
.
rhw
;
...
...
@@ -460,8 +460,8 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This,
dump_D3DMATRIX
(
&
proj_mat
);
TRACE
(
" View Matrix : (%p)
\n
"
,
&
view_mat
);
dump_D3DMATRIX
(
&
view_mat
);
TRACE
(
" World Matrix : (%p)
\n
"
,
&
mat
);
dump_D3DMATRIX
(
&
mat
);
TRACE
(
" World Matrix : (%p)
\n
"
,
&
world_
mat
);
dump_D3DMATRIX
(
&
world_
mat
);
}
multiply_matrix
(
&
mat
,
&
view_mat
,
&
world_mat
);
...
...
@@ -479,8 +479,11 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This,
dst
->
u3
.
sz
=
(
src
->
u1
.
x
*
mat
.
_13
)
+
(
src
->
u2
.
y
*
mat
.
_23
)
+
(
src
->
u3
.
z
*
mat
.
_33
)
+
(
1
.
0
*
mat
.
_43
);
dst
->
u4
.
rhw
=
(
src
->
u1
.
x
*
mat
.
_14
)
+
(
src
->
u2
.
y
*
mat
.
_24
)
+
(
src
->
u3
.
z
*
mat
.
_34
)
+
(
1
.
0
*
mat
.
_44
);
dst
->
u1
.
sx
/=
dst
->
u4
.
rhw
*
Viewport
->
dvScaleX
*
Viewport
->
dwWidth
/
2
+
Viewport
->
dwX
;
dst
->
u2
.
sy
/=
dst
->
u4
.
rhw
*
Viewport
->
dvScaleY
*
Viewport
->
dwHeight
/
2
+
Viewport
->
dwY
;
dst
->
u1
.
sx
=
dst
->
u1
.
sx
/
dst
->
u4
.
rhw
*
Viewport
->
dvScaleX
+
Viewport
->
dwX
+
Viewport
->
dwWidth
/
2
;
dst
->
u2
.
sy
=
(
-
dst
->
u2
.
sy
)
/
dst
->
u4
.
rhw
*
Viewport
->
dvScaleY
+
Viewport
->
dwY
+
Viewport
->
dwHeight
/
2
;
dst
->
u3
.
sz
/=
dst
->
u4
.
rhw
;
dst
->
u4
.
rhw
=
1
/
dst
->
u4
.
rhw
;
...
...
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