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
d1327bbe
Commit
d1327bbe
authored
Nov 27, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WINED3DDEVICE_CREATION_PARAMETERS typedef.
parent
f41ea4fe
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
21 deletions
+21
-21
device.c
dlls/d3d8/device.c
+1
-1
device.c
dlls/d3d9/device.c
+1
-1
device.c
dlls/dxgi/device.c
+2
-2
device.c
dlls/wined3d/device.c
+8
-8
swapchain.c
dlls/wined3d/swapchain.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
wined3d.h
include/wine/wined3d.h
+7
-7
No files found.
dlls/d3d8/device.c
View file @
d1327bbe
...
...
@@ -440,7 +440,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetCreationParameters(IDirect3DDevice
wined3d_mutex_lock
();
hr
=
wined3d_device_get_creation_parameters
(
This
->
wined3d_device
,
(
WINED3DDEVICE_CREATION_PARAMETERS
*
)
pParameters
);
(
struct
wined3d_device_creation_parameters
*
)
pParameters
);
wined3d_mutex_unlock
();
return
hr
;
...
...
dlls/d3d9/device.c
View file @
d1327bbe
...
...
@@ -389,7 +389,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetCreationParameters(IDirect3DDevice
wined3d_mutex_lock
();
hr
=
wined3d_device_get_creation_parameters
(
This
->
wined3d_device
,
(
WINED3DDEVICE_CREATION_PARAMETERS
*
)
pParameters
);
(
struct
wined3d_device_creation_parameters
*
)
pParameters
);
wined3d_mutex_unlock
();
return
hr
;
...
...
dlls/dxgi/device.c
View file @
d1327bbe
...
...
@@ -140,7 +140,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_device_GetParent(IWineDXGIDevice *iface, R
static
HRESULT
STDMETHODCALLTYPE
dxgi_device_GetAdapter
(
IWineDXGIDevice
*
iface
,
IDXGIAdapter
**
adapter
)
{
struct
dxgi_device
*
This
=
impl_from_IWineDXGIDevice
(
iface
);
WINED3DDEVICE_CREATION_PARAMETERS
create_parameters
;
struct
wined3d_device_creation_parameters
create_parameters
;
HRESULT
hr
;
TRACE
(
"iface %p, adapter %p
\n
"
,
iface
,
adapter
);
...
...
@@ -156,7 +156,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_device_GetAdapter(IWineDXGIDevice *iface,
LeaveCriticalSection
(
&
dxgi_cs
);
return
IWineDXGIFactory_EnumAdapters
(
This
->
factory
,
create_parameters
.
AdapterOrdinal
,
adapter
);
return
IWineDXGIFactory_EnumAdapters
(
This
->
factory
,
create_parameters
.
adapter_idx
,
adapter
);
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_device_CreateSurface
(
IWineDXGIDevice
*
iface
,
...
...
dlls/wined3d/device.c
View file @
d1327bbe
...
...
@@ -1582,7 +1582,7 @@ void CDECL wined3d_device_set_multithreaded(struct wined3d_device *device)
TRACE
(
"device %p.
\n
"
,
device
);
/* For now just store the flag (needed in case of ddraw). */
device
->
create
Parms
.
BehaviorF
lags
|=
WINED3DCREATE_MULTITHREADED
;
device
->
create
_parms
.
f
lags
|=
WINED3DCREATE_MULTITHREADED
;
}
HRESULT
CDECL
wined3d_device_set_display_mode
(
struct
wined3d_device
*
device
,
...
...
@@ -5629,7 +5629,7 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
{
if
(
swapchain
->
presentParms
.
Windowed
)
{
HWND
focus_window
=
device
->
create
Parms
.
hFocusW
indow
;
HWND
focus_window
=
device
->
create
_parms
.
focus_w
indow
;
if
(
!
focus_window
)
focus_window
=
present_parameters
->
hDeviceWindow
;
if
(
FAILED
(
hr
=
wined3d_device_acquire_focus_window
(
device
,
focus_window
)))
...
...
@@ -5711,11 +5711,11 @@ HRESULT CDECL wined3d_device_set_dialog_box_mode(struct wined3d_device *device,
HRESULT
CDECL
wined3d_device_get_creation_parameters
(
const
struct
wined3d_device
*
device
,
WINED3DDEVICE_CREATION_PARAMETERS
*
parameters
)
struct
wined3d_device_creation_parameters
*
parameters
)
{
TRACE
(
"device %p, parameters %p.
\n
"
,
device
,
parameters
);
*
parameters
=
device
->
create
P
arms
;
*
parameters
=
device
->
create
_p
arms
;
return
WINED3D_OK
;
}
...
...
@@ -5933,10 +5933,10 @@ HRESULT device_init(struct wined3d_device *device, struct wined3d *wined3d,
adapter
->
screen_format
=
mode
.
format_id
;
/* Save the creation parameters. */
device
->
create
Parms
.
AdapterOrdinal
=
adapter_idx
;
device
->
create
Parms
.
DeviceT
ype
=
device_type
;
device
->
create
Parms
.
hFocusW
indow
=
focus_window
;
device
->
create
Parms
.
BehaviorF
lags
=
flags
;
device
->
create
_parms
.
adapter_idx
=
adapter_idx
;
device
->
create
_parms
.
device_t
ype
=
device_type
;
device
->
create
_parms
.
focus_w
indow
=
focus_window
;
device
->
create
_parms
.
f
lags
=
flags
;
device
->
devType
=
device_type
;
for
(
i
=
0
;
i
<
PATCHMAP_SIZE
;
++
i
)
list_init
(
&
device
->
patches
[
i
]);
...
...
dlls/wined3d/swapchain.c
View file @
d1327bbe
...
...
@@ -864,7 +864,7 @@ static HRESULT swapchain_init(struct wined3d_swapchain *swapchain, WINED3DSURFTY
return
WINED3DERR_INVALIDCALL
;
}
window
=
present_parameters
->
hDeviceWindow
?
present_parameters
->
hDeviceWindow
:
device
->
create
Parms
.
hFocusW
indow
;
window
=
present_parameters
->
hDeviceWindow
?
present_parameters
->
hDeviceWindow
:
device
->
create
_parms
.
focus_w
indow
;
swapchain
->
device
=
device
;
swapchain
->
parent
=
parent
;
...
...
dlls/wined3d/wined3d_private.h
View file @
d1327bbe
...
...
@@ -1704,7 +1704,7 @@ struct wined3d_device
struct
wined3d_stateblock
*
updateStateBlock
;
/* Internal use fields */
WINED3DDEVICE_CREATION_PARAMETERS
createP
arms
;
struct
wined3d_device_creation_parameters
create_p
arms
;
WINED3DDEVTYPE
devType
;
HWND
focus_window
;
...
...
include/wine/wined3d.h
View file @
d1327bbe
...
...
@@ -1684,13 +1684,13 @@ struct wined3d_vertex_element
BYTE
usage_idx
;
};
typedef
struct
_WINED3DDEVICE_CREATION_PARAMETERS
struct
wined3d_device_creation_parameters
{
UINT
AdapterOrdinal
;
WINED3DDEVTYPE
DeviceT
ype
;
HWND
hFocusW
indow
;
DWORD
BehaviorF
lags
;
}
WINED3DDEVICE_CREATION_PARAMETERS
;
UINT
adapter_idx
;
WINED3DDEVTYPE
device_t
ype
;
HWND
focus_w
indow
;
DWORD
f
lags
;
};
typedef
struct
_WINED3DDEVINFO_BANDWIDTHTIMINGS
{
...
...
@@ -2203,7 +2203,7 @@ HRESULT __cdecl wined3d_device_get_clip_plane(const struct wined3d_device *devic
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
,
WINED3DDEVICE_CREATION_PARAMETERS
*
creation_parameters
);
struct
wined3d_device_creation_parameters
*
creation_parameters
);
HRESULT
__cdecl
wined3d_device_get_depth_stencil
(
const
struct
wined3d_device
*
device
,
struct
wined3d_surface
**
depth_stencil
);
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