Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2ae876fa
Commit
2ae876fa
authored
Jan 30, 2004
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jan 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the Z transform in the XYRZHW case.
parent
32376a52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+8
-3
No files found.
dlls/ddraw/d3ddevice/mesa.c
View file @
2ae876fa
...
...
@@ -3350,12 +3350,17 @@ d3ddevice_set_ortho(IDirect3DDeviceImpl *This)
height
=
This
->
surface
->
surface_desc
.
dwHeight
;
/* The X axis is straighforward.. For the Y axis, we need to convert 'D3D' screen coordinates
to OpenGL screen coordinates (ie the upper left corner is not the same).
For Z, the mystery is what should it be mapped to ? Ie should the resulting range be between
-1.0 and 1.0 (as the X and Y coordinates) or between 0.0 and 1.0 ? */
* to OpenGL screen coordinates (ie the upper left corner is not the same).
*/
trans_mat
[
0
]
=
2
.
0
/
width
;
trans_mat
[
4
]
=
0
.
0
;
trans_mat
[
8
]
=
0
.
0
;
trans_mat
[
12
]
=
-
1
.
0
;
trans_mat
[
1
]
=
0
.
0
;
trans_mat
[
5
]
=
-
2
.
0
/
height
;
trans_mat
[
9
]
=
0
.
0
;
trans_mat
[
13
]
=
1
.
0
;
#if 0
/* It has been checked that in Messiah, which mixes XYZ and XYZRHZ vertex format in the same scene,
* that the Z coordinate needs to be given to GL unchanged.
*/
trans_mat[ 2] = 0.0; trans_mat[ 6] = 0.0; trans_mat[10] = 2.0; trans_mat[14] = -1.0;
#endif
trans_mat
[
2
]
=
0
.
0
;
trans_mat
[
6
]
=
0
.
0
;
trans_mat
[
10
]
=
1
.
0
;
trans_mat
[
14
]
=
0
.
0
;
trans_mat
[
3
]
=
0
.
0
;
trans_mat
[
7
]
=
0
.
0
;
trans_mat
[
11
]
=
0
.
0
;
trans_mat
[
15
]
=
1
.
0
;
ENTER_GL
();
...
...
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