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
4d1a659c
Commit
4d1a659c
authored
Apr 10, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Get rid of IDirect3DExecuteBufferImpl.
parent
53b3f9d4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
ddraw_private.h
dlls/ddraw/ddraw_private.h
+4
-5
device.c
dlls/ddraw/device.c
+4
-4
executebuffer.c
dlls/ddraw/executebuffer.c
+0
-0
No files found.
dlls/ddraw/ddraw_private.h
View file @
4d1a659c
...
...
@@ -40,7 +40,6 @@
extern
const
struct
wined3d_parent_ops
ddraw_null_wined3d_parent_ops
DECLSPEC_HIDDEN
;
/* Typdef the interfaces */
typedef
struct
IDirect3DExecuteBufferImpl
IDirect3DExecuteBufferImpl
;
typedef
struct
IDirect3DVertexBufferImpl
IDirect3DVertexBufferImpl
;
extern
DWORD
force_refresh_rate
DECLSPEC_HIDDEN
;
...
...
@@ -488,7 +487,7 @@ void d3d_viewport_init(struct d3d_viewport *viewport, struct ddraw *ddraw) DECLS
/*****************************************************************************
* IDirect3DExecuteBuffer - Wraps to D3D7
*****************************************************************************/
struct
IDirect3DExecuteBufferImpl
struct
d3d_execute_buffer
{
IDirect3DExecuteBuffer
IDirect3DExecuteBuffer_iface
;
LONG
ref
;
...
...
@@ -510,12 +509,12 @@ struct IDirect3DExecuteBufferImpl
BOOL
need_free
;
};
HRESULT
d3d_execute_buffer_init
(
IDirect3DExecuteBufferImpl
*
execute_buffer
,
HRESULT
d3d_execute_buffer_init
(
struct
d3d_execute_buffer
*
execute_buffer
,
struct
d3d_device
*
device
,
D3DEXECUTEBUFFERDESC
*
desc
)
DECLSPEC_HIDDEN
;
IDirect3DExecuteBufferImpl
*
unsafe_impl_from_IDirect3DExecuteBuffer
(
IDirect3DExecuteBuffer
*
iface
)
DECLSPEC_HIDDEN
;
struct
d3d_execute_buffer
*
unsafe_impl_from_IDirect3DExecuteBuffer
(
IDirect3DExecuteBuffer
*
iface
)
DECLSPEC_HIDDEN
;
/* The execute function */
HRESULT
d3d_execute_buffer_execute
(
IDirect3DExecuteBufferImpl
*
execute_buffer
,
HRESULT
d3d_execute_buffer_execute
(
struct
d3d_execute_buffer
*
execute_buffer
,
struct
d3d_device
*
device
,
struct
d3d_viewport
*
viewport
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
...
...
dlls/ddraw/device.c
View file @
4d1a659c
...
...
@@ -659,7 +659,7 @@ static HRESULT WINAPI d3d_device1_CreateExecuteBuffer(IDirect3DDevice *iface,
D3DEXECUTEBUFFERDESC
*
buffer_desc
,
IDirect3DExecuteBuffer
**
ExecuteBuffer
,
IUnknown
*
outer_unknown
)
{
struct
d3d_device
*
device
=
impl_from_IDirect3DDevice
(
iface
);
IDirect3DExecuteBufferImpl
*
object
;
struct
d3d_execute_buffer
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, buffer_desc %p, buffer %p, outer_unknown %p.
\n
"
,
...
...
@@ -669,10 +669,10 @@ static HRESULT WINAPI d3d_device1_CreateExecuteBuffer(IDirect3DDevice *iface,
return
CLASS_E_NOAGGREGATION
;
/* Allocate the new Execute Buffer */
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DExecuteBufferImpl
));
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
!
object
)
{
ERR
(
"
Out of memory when allocating a IDirect3DExecuteBufferImpl structure
\n
"
);
ERR
(
"
Failed to allocate execute buffer memory.
\n
"
);
return
DDERR_OUTOFMEMORY
;
}
...
...
@@ -710,7 +710,7 @@ static HRESULT WINAPI d3d_device1_Execute(IDirect3DDevice *iface,
IDirect3DExecuteBuffer
*
ExecuteBuffer
,
IDirect3DViewport
*
viewport
,
DWORD
flags
)
{
struct
d3d_device
*
device
=
impl_from_IDirect3DDevice
(
iface
);
IDirect3DExecuteBufferImpl
*
buffer
=
unsafe_impl_from_IDirect3DExecuteBuffer
(
ExecuteBuffer
);
struct
d3d_execute_buffer
*
buffer
=
unsafe_impl_from_IDirect3DExecuteBuffer
(
ExecuteBuffer
);
struct
d3d_viewport
*
viewport_impl
=
unsafe_impl_from_IDirect3DViewport
(
viewport
);
HRESULT
hr
;
...
...
dlls/ddraw/executebuffer.c
View file @
4d1a659c
This diff is collapsed.
Click to expand it.
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