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
2ad58089
Commit
2ad58089
authored
Oct 01, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: wined3d_device_get_creation_parameters() never fails.
parent
6e5cf8c6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
18 deletions
+7
-18
device.c
dlls/d3d8/device.c
+2
-3
device.c
dlls/d3d9/device.c
+2
-3
device.c
dlls/dxgi/device.c
+1
-9
device.c
dlls/wined3d/device.c
+1
-2
wined3d.h
include/wine/wined3d.h
+1
-1
No files found.
dlls/d3d8/device.c
View file @
2ad58089
...
...
@@ -479,16 +479,15 @@ static HRESULT WINAPI d3d8_device_GetCreationParameters(IDirect3DDevice8 *iface,
D3DDEVICE_CREATION_PARAMETERS
*
parameters
)
{
struct
d3d8_device
*
device
=
impl_from_IDirect3DDevice8
(
iface
);
HRESULT
hr
;
TRACE
(
"iface %p, parameters %p.
\n
"
,
iface
,
parameters
);
wined3d_mutex_lock
();
hr
=
wined3d_device_get_creation_parameters
(
device
->
wined3d_device
,
wined3d_device_get_creation_parameters
(
device
->
wined3d_device
,
(
struct
wined3d_device_creation_parameters
*
)
parameters
);
wined3d_mutex_unlock
();
return
hr
;
return
D3D_OK
;
}
static
HRESULT
WINAPI
d3d8_device_SetCursorProperties
(
IDirect3DDevice8
*
iface
,
...
...
dlls/d3d9/device.c
View file @
2ad58089
...
...
@@ -422,16 +422,15 @@ static HRESULT WINAPI d3d9_device_GetCreationParameters(IDirect3DDevice9Ex *ifac
D3DDEVICE_CREATION_PARAMETERS
*
parameters
)
{
struct
d3d9_device
*
device
=
impl_from_IDirect3DDevice9Ex
(
iface
);
HRESULT
hr
;
TRACE
(
"iface %p, parameters %p.
\n
"
,
iface
,
parameters
);
wined3d_mutex_lock
();
hr
=
wined3d_device_get_creation_parameters
(
device
->
wined3d_device
,
wined3d_device_get_creation_parameters
(
device
->
wined3d_device
,
(
struct
wined3d_device_creation_parameters
*
)
parameters
);
wined3d_mutex_unlock
();
return
hr
;
return
D3D_OK
;
}
static
HRESULT
WINAPI
d3d9_device_SetCursorProperties
(
IDirect3DDevice9Ex
*
iface
,
...
...
dlls/dxgi/device.c
View file @
2ad58089
...
...
@@ -141,19 +141,11 @@ static HRESULT STDMETHODCALLTYPE dxgi_device_GetAdapter(IWineDXGIDevice *iface,
{
struct
dxgi_device
*
This
=
impl_from_IWineDXGIDevice
(
iface
);
struct
wined3d_device_creation_parameters
create_parameters
;
HRESULT
hr
;
TRACE
(
"iface %p, adapter %p
\n
"
,
iface
,
adapter
);
EnterCriticalSection
(
&
dxgi_cs
);
hr
=
wined3d_device_get_creation_parameters
(
This
->
wined3d_device
,
&
create_parameters
);
if
(
FAILED
(
hr
))
{
LeaveCriticalSection
(
&
dxgi_cs
);
return
hr
;
}
wined3d_device_get_creation_parameters
(
This
->
wined3d_device
,
&
create_parameters
);
LeaveCriticalSection
(
&
dxgi_cs
);
return
IWineDXGIFactory_EnumAdapters
(
This
->
factory
,
create_parameters
.
adapter_idx
,
adapter
);
...
...
dlls/wined3d/device.c
View file @
2ad58089
...
...
@@ -5263,13 +5263,12 @@ HRESULT CDECL wined3d_device_set_dialog_box_mode(struct wined3d_device *device,
}
HRESULT
CDECL
wined3d_device_get_creation_parameters
(
const
struct
wined3d_device
*
device
,
void
CDECL
wined3d_device_get_creation_parameters
(
const
struct
wined3d_device
*
device
,
struct
wined3d_device_creation_parameters
*
parameters
)
{
TRACE
(
"device %p, parameters %p.
\n
"
,
device
,
parameters
);
*
parameters
=
device
->
create_parms
;
return
WINED3D_OK
;
}
void
CDECL
wined3d_device_set_gamma_ramp
(
const
struct
wined3d_device
*
device
,
...
...
include/wine/wined3d.h
View file @
2ad58089
...
...
@@ -2114,7 +2114,7 @@ HRESULT __cdecl wined3d_device_get_clip_plane(const struct wined3d_device *devic
UINT
plane_idx
,
struct
wined3d_vec4
*
plane
);
HRESULT
__cdecl
wined3d_device_get_clip_status
(
const
struct
wined3d_device
*
device
,
struct
wined3d_clip_status
*
clip_status
);
HRESULT
__cdecl
wined3d_device_get_creation_parameters
(
const
struct
wined3d_device
*
device
,
void
__cdecl
wined3d_device_get_creation_parameters
(
const
struct
wined3d_device
*
device
,
struct
wined3d_device_creation_parameters
*
creation_parameters
);
struct
wined3d_surface
*
__cdecl
wined3d_device_get_depth_stencil
(
const
struct
wined3d_device
*
device
);
HRESULT
__cdecl
wined3d_device_get_device_caps
(
const
struct
wined3d_device
*
device
,
WINED3DCAPS
*
caps
);
...
...
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