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
f7597dee
Commit
f7597dee
authored
Jul 01, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Update the wined3d matrix if a current matrix handle is modified.
parent
9928a4c4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
ddraw_private.h
dlls/ddraw/ddraw_private.h
+1
-0
device.c
dlls/ddraw/device.c
+19
-0
executebuffer.c
dlls/ddraw/executebuffer.c
+6
-0
No files found.
dlls/ddraw/ddraw_private.h
View file @
f7597dee
...
...
@@ -348,6 +348,7 @@ struct IDirect3DDeviceImpl
/* Handle management */
struct
HandleEntry
*
Handles
;
DWORD
numHandles
;
D3DMATRIXHANDLE
world
,
proj
,
view
;
};
/* Vtables in various versions */
...
...
dlls/ddraw/device.c
View file @
f7597dee
...
...
@@ -1406,6 +1406,25 @@ IDirect3DDeviceImpl_1_SetMatrix(IDirect3DDevice *iface,
*
((
D3DMATRIX
*
)
This
->
Handles
[
D3DMatHandle
-
1
].
ptr
)
=
*
D3DMatrix
;
if
(
This
->
world
==
D3DMatHandle
)
{
IWineD3DDevice_SetTransform
(
This
->
wineD3DDevice
,
WINED3DTS_WORLDMATRIX
(
0
),
(
WINED3DMATRIX
*
)
D3DMatrix
);
}
if
(
This
->
view
==
D3DMatHandle
)
{
IWineD3DDevice_SetTransform
(
This
->
wineD3DDevice
,
WINED3DTS_VIEW
,
(
WINED3DMATRIX
*
)
D3DMatrix
);
}
if
(
This
->
proj
==
D3DMatHandle
)
{
IWineD3DDevice_SetTransform
(
This
->
wineD3DDevice
,
WINED3DTS_PROJECTION
,
(
WINED3DMATRIX
*
)
D3DMatrix
);
}
LeaveCriticalSection
(
&
ddraw_cs
);
return
D3D_OK
;
}
...
...
dlls/ddraw/executebuffer.c
View file @
f7597dee
...
...
@@ -227,6 +227,12 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This,
}
else
if
(
lpDevice
->
Handles
[
ci
->
u2
.
dwArg
[
0
]
-
1
].
type
!=
DDrawHandle_Matrix
)
{
ERR
(
"Handle %d is not a matrix handle
\n
"
,
ci
->
u2
.
dwArg
[
0
]);
}
else
{
if
(
ci
->
u1
.
drstRenderStateType
==
D3DTRANSFORMSTATE_WORLD
)
lpDevice
->
world
=
ci
->
u2
.
dwArg
[
0
];
if
(
ci
->
u1
.
drstRenderStateType
==
D3DTRANSFORMSTATE_VIEW
)
lpDevice
->
view
=
ci
->
u2
.
dwArg
[
0
];
if
(
ci
->
u1
.
drstRenderStateType
==
D3DTRANSFORMSTATE_PROJECTION
)
lpDevice
->
proj
=
ci
->
u2
.
dwArg
[
0
];
IDirect3DDevice7_SetTransform
(
ICOM_INTERFACE
(
lpDevice
,
IDirect3DDevice7
),
ci
->
u1
.
drstRenderStateType
,
(
LPD3DMATRIX
)
lpDevice
->
Handles
[
ci
->
u2
.
dwArg
[
0
]
-
1
].
ptr
);
}
...
...
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