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
3569b6cc
Commit
3569b6cc
authored
Sep 08, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: wined3d_device_get_viewport() never fails.
parent
64aae8cf
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
13 deletions
+8
-13
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
+1
-3
wined3d.h
include/wine/wined3d.h
+1
-1
No files found.
dlls/d3d8/device.c
View file @
3569b6cc
...
@@ -1322,16 +1322,15 @@ static HRESULT WINAPI d3d8_device_SetViewport(IDirect3DDevice8 *iface, const D3D
...
@@ -1322,16 +1322,15 @@ static HRESULT WINAPI d3d8_device_SetViewport(IDirect3DDevice8 *iface, const D3D
static
HRESULT
WINAPI
d3d8_device_GetViewport
(
IDirect3DDevice8
*
iface
,
D3DVIEWPORT8
*
viewport
)
static
HRESULT
WINAPI
d3d8_device_GetViewport
(
IDirect3DDevice8
*
iface
,
D3DVIEWPORT8
*
viewport
)
{
{
struct
d3d8_device
*
device
=
impl_from_IDirect3DDevice8
(
iface
);
struct
d3d8_device
*
device
=
impl_from_IDirect3DDevice8
(
iface
);
HRESULT
hr
;
TRACE
(
"iface %p, viewport %p.
\n
"
,
iface
,
viewport
);
TRACE
(
"iface %p, viewport %p.
\n
"
,
iface
,
viewport
);
/* Note: D3DVIEWPORT8 is compatible with struct wined3d_viewport. */
/* Note: D3DVIEWPORT8 is compatible with struct wined3d_viewport. */
wined3d_mutex_lock
();
wined3d_mutex_lock
();
hr
=
wined3d_device_get_viewport
(
device
->
wined3d_device
,
(
struct
wined3d_viewport
*
)
viewport
);
wined3d_device_get_viewport
(
device
->
wined3d_device
,
(
struct
wined3d_viewport
*
)
viewport
);
wined3d_mutex_unlock
();
wined3d_mutex_unlock
();
return
hr
;
return
D3D_OK
;
}
}
static
HRESULT
WINAPI
d3d8_device_SetMaterial
(
IDirect3DDevice8
*
iface
,
const
D3DMATERIAL8
*
material
)
static
HRESULT
WINAPI
d3d8_device_SetMaterial
(
IDirect3DDevice8
*
iface
,
const
D3DMATERIAL8
*
material
)
...
...
dlls/d3d9/device.c
View file @
3569b6cc
...
@@ -1388,16 +1388,15 @@ static HRESULT WINAPI d3d9_device_SetViewport(IDirect3DDevice9Ex *iface, const D
...
@@ -1388,16 +1388,15 @@ static HRESULT WINAPI d3d9_device_SetViewport(IDirect3DDevice9Ex *iface, const D
static
HRESULT
WINAPI
d3d9_device_GetViewport
(
IDirect3DDevice9Ex
*
iface
,
D3DVIEWPORT9
*
viewport
)
static
HRESULT
WINAPI
d3d9_device_GetViewport
(
IDirect3DDevice9Ex
*
iface
,
D3DVIEWPORT9
*
viewport
)
{
{
struct
d3d9_device
*
device
=
impl_from_IDirect3DDevice9Ex
(
iface
);
struct
d3d9_device
*
device
=
impl_from_IDirect3DDevice9Ex
(
iface
);
HRESULT
hr
;
TRACE
(
"iface %p, viewport %p.
\n
"
,
iface
,
viewport
);
TRACE
(
"iface %p, viewport %p.
\n
"
,
iface
,
viewport
);
/* Note: D3DVIEWPORT9 is compatible with struct wined3d_viewport. */
/* Note: D3DVIEWPORT9 is compatible with struct wined3d_viewport. */
wined3d_mutex_lock
();
wined3d_mutex_lock
();
hr
=
wined3d_device_get_viewport
(
device
->
wined3d_device
,
(
struct
wined3d_viewport
*
)
viewport
);
wined3d_device_get_viewport
(
device
->
wined3d_device
,
(
struct
wined3d_viewport
*
)
viewport
);
wined3d_mutex_unlock
();
wined3d_mutex_unlock
();
return
hr
;
return
D3D_OK
;
}
}
static
HRESULT
WINAPI
d3d9_device_SetMaterial
(
IDirect3DDevice9Ex
*
iface
,
const
D3DMATERIAL9
*
material
)
static
HRESULT
WINAPI
d3d9_device_SetMaterial
(
IDirect3DDevice9Ex
*
iface
,
const
D3DMATERIAL9
*
material
)
...
...
dlls/ddraw/device.c
View file @
3569b6cc
...
@@ -5042,7 +5042,6 @@ static HRESULT WINAPI d3d_device7_SetViewport_FPUPreserve(IDirect3DDevice7 *ifac
...
@@ -5042,7 +5042,6 @@ static HRESULT WINAPI d3d_device7_SetViewport_FPUPreserve(IDirect3DDevice7 *ifac
static
HRESULT
d3d_device7_GetViewport
(
IDirect3DDevice7
*
iface
,
D3DVIEWPORT7
*
viewport
)
static
HRESULT
d3d_device7_GetViewport
(
IDirect3DDevice7
*
iface
,
D3DVIEWPORT7
*
viewport
)
{
{
struct
d3d_device
*
device
=
impl_from_IDirect3DDevice7
(
iface
);
struct
d3d_device
*
device
=
impl_from_IDirect3DDevice7
(
iface
);
HRESULT
hr
;
TRACE
(
"iface %p, viewport %p.
\n
"
,
iface
,
viewport
);
TRACE
(
"iface %p, viewport %p.
\n
"
,
iface
,
viewport
);
...
@@ -5051,10 +5050,10 @@ static HRESULT d3d_device7_GetViewport(IDirect3DDevice7 *iface, D3DVIEWPORT7 *vi
...
@@ -5051,10 +5050,10 @@ static HRESULT d3d_device7_GetViewport(IDirect3DDevice7 *iface, D3DVIEWPORT7 *vi
/* Note: D3DVIEWPORT7 is compatible with struct wined3d_viewport. */
/* Note: D3DVIEWPORT7 is compatible with struct wined3d_viewport. */
wined3d_mutex_lock
();
wined3d_mutex_lock
();
hr
=
wined3d_device_get_viewport
(
device
->
wined3d_device
,
(
struct
wined3d_viewport
*
)
viewport
);
wined3d_device_get_viewport
(
device
->
wined3d_device
,
(
struct
wined3d_viewport
*
)
viewport
);
wined3d_mutex_unlock
();
wined3d_mutex_unlock
();
return
hr_ddraw_from_wined3d
(
hr
)
;
return
D3D_OK
;
}
}
static
HRESULT
WINAPI
d3d_device7_GetViewport_FPUSetup
(
IDirect3DDevice7
*
iface
,
D3DVIEWPORT7
*
viewport
)
static
HRESULT
WINAPI
d3d_device7_GetViewport_FPUSetup
(
IDirect3DDevice7
*
iface
,
D3DVIEWPORT7
*
viewport
)
...
...
dlls/wined3d/device.c
View file @
3569b6cc
...
@@ -2310,13 +2310,11 @@ void CDECL wined3d_device_set_viewport(struct wined3d_device *device, const stru
...
@@ -2310,13 +2310,11 @@ void CDECL wined3d_device_set_viewport(struct wined3d_device *device, const stru
device_invalidate_state
(
device
,
STATE_VIEWPORT
);
device_invalidate_state
(
device
,
STATE_VIEWPORT
);
}
}
HRESULT
CDECL
wined3d_device_get_viewport
(
const
struct
wined3d_device
*
device
,
struct
wined3d_viewport
*
viewport
)
void
CDECL
wined3d_device_get_viewport
(
const
struct
wined3d_device
*
device
,
struct
wined3d_viewport
*
viewport
)
{
{
TRACE
(
"device %p, viewport %p.
\n
"
,
device
,
viewport
);
TRACE
(
"device %p, viewport %p.
\n
"
,
device
,
viewport
);
*
viewport
=
device
->
stateBlock
->
state
.
viewport
;
*
viewport
=
device
->
stateBlock
->
state
.
viewport
;
return
WINED3D_OK
;
}
}
HRESULT
CDECL
wined3d_device_set_render_state
(
struct
wined3d_device
*
device
,
HRESULT
CDECL
wined3d_device_set_render_state
(
struct
wined3d_device
*
device
,
...
...
include/wine/wined3d.h
View file @
3569b6cc
...
@@ -2168,7 +2168,7 @@ HRESULT __cdecl wined3d_device_get_transform(const struct wined3d_device *device
...
@@ -2168,7 +2168,7 @@ HRESULT __cdecl wined3d_device_get_transform(const struct wined3d_device *device
HRESULT
__cdecl
wined3d_device_get_vertex_declaration
(
const
struct
wined3d_device
*
device
,
HRESULT
__cdecl
wined3d_device_get_vertex_declaration
(
const
struct
wined3d_device
*
device
,
struct
wined3d_vertex_declaration
**
declaration
);
struct
wined3d_vertex_declaration
**
declaration
);
struct
wined3d_shader
*
__cdecl
wined3d_device_get_vertex_shader
(
const
struct
wined3d_device
*
device
);
struct
wined3d_shader
*
__cdecl
wined3d_device_get_vertex_shader
(
const
struct
wined3d_device
*
device
);
HRESULT
__cdecl
wined3d_device_get_viewport
(
const
struct
wined3d_device
*
device
,
struct
wined3d_viewport
*
viewport
);
void
__cdecl
wined3d_device_get_viewport
(
const
struct
wined3d_device
*
device
,
struct
wined3d_viewport
*
viewport
);
HRESULT
__cdecl
wined3d_device_get_vs_consts_b
(
const
struct
wined3d_device
*
device
,
HRESULT
__cdecl
wined3d_device_get_vs_consts_b
(
const
struct
wined3d_device
*
device
,
UINT
start_register
,
BOOL
*
constants
,
UINT
bool_count
);
UINT
start_register
,
BOOL
*
constants
,
UINT
bool_count
);
HRESULT
__cdecl
wined3d_device_get_vs_consts_f
(
const
struct
wined3d_device
*
device
,
HRESULT
__cdecl
wined3d_device_get_vs_consts_f
(
const
struct
wined3d_device
*
device
,
...
...
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