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
90bd04c6
Commit
90bd04c6
authored
Sep 14, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: wined3d_device_multiply_transform() never fails.
parent
bf23df79
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
15 deletions
+10
-15
device.c
dlls/d3d8/device.c
+2
-3
device.c
dlls/d3d9/device.c
+2
-3
device.c
dlls/ddraw/device.c
+2
-3
device.c
dlls/wined3d/device.c
+3
-5
wined3d.h
include/wine/wined3d.h
+1
-1
No files found.
dlls/d3d8/device.c
View file @
90bd04c6
...
...
@@ -1291,16 +1291,15 @@ static HRESULT WINAPI d3d8_device_MultiplyTransform(IDirect3DDevice8 *iface,
D3DTRANSFORMSTATETYPE
state
,
const
D3DMATRIX
*
matrix
)
{
struct
d3d8_device
*
device
=
impl_from_IDirect3DDevice8
(
iface
);
HRESULT
hr
;
TRACE
(
"iface %p, state %#x, matrix %p.
\n
"
,
iface
,
state
,
matrix
);
/* Note: D3DMATRIX is compatible with struct wined3d_matrix. */
wined3d_mutex_lock
();
hr
=
wined3d_device_multiply_transform
(
device
->
wined3d_device
,
state
,
(
const
struct
wined3d_matrix
*
)
matrix
);
wined3d_device_multiply_transform
(
device
->
wined3d_device
,
state
,
(
const
struct
wined3d_matrix
*
)
matrix
);
wined3d_mutex_unlock
();
return
hr
;
return
D3D_OK
;
}
static
HRESULT
WINAPI
d3d8_device_SetViewport
(
IDirect3DDevice8
*
iface
,
const
D3DVIEWPORT8
*
viewport
)
...
...
dlls/d3d9/device.c
View file @
90bd04c6
...
...
@@ -1357,16 +1357,15 @@ static HRESULT WINAPI d3d9_device_MultiplyTransform(IDirect3DDevice9Ex *iface,
D3DTRANSFORMSTATETYPE
state
,
const
D3DMATRIX
*
matrix
)
{
struct
d3d9_device
*
device
=
impl_from_IDirect3DDevice9Ex
(
iface
);
HRESULT
hr
;
TRACE
(
"iface %p, state %#x, matrix %p.
\n
"
,
iface
,
state
,
matrix
);
/* Note: D3DMATRIX is compatible with struct wined3d_matrix. */
wined3d_mutex_lock
();
hr
=
wined3d_device_multiply_transform
(
device
->
wined3d_device
,
state
,
(
const
struct
wined3d_matrix
*
)
matrix
);
wined3d_device_multiply_transform
(
device
->
wined3d_device
,
state
,
(
const
struct
wined3d_matrix
*
)
matrix
);
wined3d_mutex_unlock
();
return
hr
;
return
D3D_OK
;
}
static
HRESULT
WINAPI
d3d9_device_SetViewport
(
IDirect3DDevice9Ex
*
iface
,
const
D3DVIEWPORT9
*
viewport
)
...
...
dlls/ddraw/device.c
View file @
90bd04c6
...
...
@@ -3299,7 +3299,6 @@ static HRESULT d3d_device7_MultiplyTransform(IDirect3DDevice7 *iface,
{
struct
d3d_device
*
device
=
impl_from_IDirect3DDevice7
(
iface
);
enum
wined3d_transform_state
wined3d_state
;
HRESULT
hr
;
TRACE
(
"iface %p, state %#x, matrix %p.
\n
"
,
iface
,
state
,
matrix
);
...
...
@@ -3323,11 +3322,11 @@ static HRESULT d3d_device7_MultiplyTransform(IDirect3DDevice7 *iface,
/* Note: D3DMATRIX is compatible with struct wined3d_matrix. */
wined3d_mutex_lock
();
hr
=
wined3d_device_multiply_transform
(
device
->
wined3d_device
,
wined3d_device_multiply_transform
(
device
->
wined3d_device
,
wined3d_state
,
(
struct
wined3d_matrix
*
)
matrix
);
wined3d_mutex_unlock
();
return
hr
;
return
D3D_OK
;
}
static
HRESULT
WINAPI
d3d_device7_MultiplyTransform_FPUSetup
(
IDirect3DDevice7
*
iface
,
...
...
dlls/wined3d/device.c
View file @
90bd04c6
...
...
@@ -1763,10 +1763,10 @@ void CDECL wined3d_device_get_transform(const struct wined3d_device *device,
*
matrix
=
device
->
stateBlock
->
state
.
transforms
[
state
];
}
HRESULT
CDECL
wined3d_device_multiply_transform
(
struct
wined3d_device
*
device
,
void
CDECL
wined3d_device_multiply_transform
(
struct
wined3d_device
*
device
,
enum
wined3d_transform_state
state
,
const
struct
wined3d_matrix
*
matrix
)
{
const
struct
wined3d_matrix
*
mat
=
NULL
;
const
struct
wined3d_matrix
*
mat
;
struct
wined3d_matrix
temp
;
TRACE
(
"device %p, state %s, matrix %p.
\n
"
,
device
,
debug_d3dtstype
(
state
),
matrix
);
...
...
@@ -1778,7 +1778,7 @@ HRESULT CDECL wined3d_device_multiply_transform(struct wined3d_device *device,
if
(
state
>
HIGHEST_TRANSFORMSTATE
)
{
WARN
(
"Unhandled transform state %#x.
\n
"
,
state
);
return
WINED3D_OK
;
return
;
}
mat
=
&
device
->
updateStateBlock
->
state
.
transforms
[
state
];
...
...
@@ -1786,8 +1786,6 @@ HRESULT CDECL wined3d_device_multiply_transform(struct wined3d_device *device,
/* Apply change via set transform - will reapply to eg. lights this way. */
wined3d_device_set_transform
(
device
,
state
,
&
temp
);
return
WINED3D_OK
;
}
/* Note lights are real special cases. Although the device caps state only
...
...
include/wine/wined3d.h
View file @
90bd04c6
...
...
@@ -2177,7 +2177,7 @@ HRESULT __cdecl wined3d_device_get_vs_consts_i(const struct wined3d_device *devi
ULONG
__cdecl
wined3d_device_incref
(
struct
wined3d_device
*
device
);
HRESULT
__cdecl
wined3d_device_init_3d
(
struct
wined3d_device
*
device
,
struct
wined3d_swapchain_desc
*
swapchain_desc
);
HRESULT
__cdecl
wined3d_device_init_gdi
(
struct
wined3d_device
*
device
,
struct
wined3d_swapchain_desc
*
swapchain_desc
);
HRESULT
__cdecl
wined3d_device_multiply_transform
(
struct
wined3d_device
*
device
,
void
__cdecl
wined3d_device_multiply_transform
(
struct
wined3d_device
*
device
,
enum
wined3d_transform_state
state
,
const
struct
wined3d_matrix
*
matrix
);
HRESULT
__cdecl
wined3d_device_present
(
const
struct
wined3d_device
*
device
,
const
RECT
*
src_rect
,
const
RECT
*
dst_rect
,
HWND
dst_window_override
,
const
RGNDATA
*
dirty_region
,
DWORD
flags
);
...
...
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