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
e14233ae
Commit
e14233ae
authored
Jun 04, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jun 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Viewport hack to get some old D3D1 games to work
- TRACEing fix
parent
3f61d286
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
main.c
dlls/ddraw/d3ddevice/main.c
+3
-1
d3dviewport.c
dlls/ddraw/d3dviewport.c
+7
-0
No files found.
dlls/ddraw/d3ddevice/main.c
View file @
e14233ae
...
...
@@ -1380,7 +1380,9 @@ Main_IDirect3DDeviceImpl_1_SetMatrix(LPDIRECT3DDEVICE iface,
ICOM_THIS_FROM
(
IDirect3DDeviceImpl
,
IDirect3DDevice
,
iface
);
TRACE
(
"(%p/%p)->(%08lx,%p)
\n
"
,
This
,
iface
,
(
DWORD
)
D3DMatHandle
,
lpD3DMatrix
);
dump_D3DMATRIX
(
lpD3DMatrix
);
if
(
TRACE_ON
(
ddraw
))
{
dump_D3DMATRIX
(
lpD3DMatrix
);
}
*
((
D3DMATRIX
*
)
D3DMatHandle
)
=
*
lpD3DMatrix
;
return
DD_OK
;
...
...
dlls/ddraw/d3dviewport.c
View file @
e14233ae
...
...
@@ -185,6 +185,13 @@ Main_IDirect3DViewportImpl_3_2_1_SetViewport(LPDIRECT3DVIEWPORT3 iface,
This
->
use_vp2
=
0
;
memset
(
&
(
This
->
viewports
.
vp1
),
0
,
sizeof
(
This
->
viewports
.
vp1
));
memcpy
(
&
(
This
->
viewports
.
vp1
),
lpData
,
lpData
->
dwSize
);
/* Tests on two games shows that these values are never used properly so overide
them with proper ones :-)
*/
This
->
viewports
.
vp1
.
dvMinZ
=
0
.
0
;
This
->
viewports
.
vp1
.
dvMaxZ
=
1
.
0
;
return
DD_OK
;
}
...
...
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