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
62c1fb09
Commit
62c1fb09
authored
Mar 30, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Mar 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Remove typedef from ID3DXBufferImpl.
parent
98001ca8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
core.c
dlls/d3dx9_36/core.c
+10
-10
No files found.
dlls/d3dx9_36/core.c
View file @
62c1fb09
...
...
@@ -30,23 +30,23 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3dx
);
typedef
struct
ID3DXBufferImpl
struct
ID3DXBufferImpl
{
ID3DXBuffer
ID3DXBuffer_iface
;
LONG
ref
;
DWORD
*
buffer
;
DWORD
bufferSize
;
}
ID3DXBufferImpl
;
};
static
inline
ID3DXBufferImpl
*
impl_from_ID3DXBuffer
(
ID3DXBuffer
*
iface
)
static
inline
struct
ID3DXBufferImpl
*
impl_from_ID3DXBuffer
(
ID3DXBuffer
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ID3DXBufferImpl
,
ID3DXBuffer_iface
);
return
CONTAINING_RECORD
(
iface
,
struct
ID3DXBufferImpl
,
ID3DXBuffer_iface
);
}
static
HRESULT
WINAPI
ID3DXBufferImpl_QueryInterface
(
ID3DXBuffer
*
iface
,
REFIID
riid
,
void
**
ppobj
)
{
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
struct
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_ID3DXBuffer
))
...
...
@@ -62,7 +62,7 @@ static HRESULT WINAPI ID3DXBufferImpl_QueryInterface(ID3DXBuffer *iface, REFIID
static
ULONG
WINAPI
ID3DXBufferImpl_AddRef
(
ID3DXBuffer
*
iface
)
{
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
struct
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) : AddRef from %d
\n
"
,
This
,
ref
-
1
);
...
...
@@ -72,7 +72,7 @@ static ULONG WINAPI ID3DXBufferImpl_AddRef(ID3DXBuffer *iface)
static
ULONG
WINAPI
ID3DXBufferImpl_Release
(
ID3DXBuffer
*
iface
)
{
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
struct
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %d
\n
"
,
This
,
ref
);
...
...
@@ -87,13 +87,13 @@ static ULONG WINAPI ID3DXBufferImpl_Release(ID3DXBuffer *iface)
static
LPVOID
WINAPI
ID3DXBufferImpl_GetBufferPointer
(
ID3DXBuffer
*
iface
)
{
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
struct
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
return
This
->
buffer
;
}
static
DWORD
WINAPI
ID3DXBufferImpl_GetBufferSize
(
ID3DXBuffer
*
iface
)
{
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
struct
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
return
This
->
bufferSize
;
}
...
...
@@ -108,7 +108,7 @@ const ID3DXBufferVtbl D3DXBuffer_Vtbl =
HRESULT
WINAPI
D3DXCreateBuffer
(
DWORD
NumBytes
,
LPD3DXBUFFER
*
ppBuffer
)
{
ID3DXBufferImpl
*
object
;
struct
ID3DXBufferImpl
*
object
;
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
object
==
NULL
)
...
...
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