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
404de72f
Commit
404de72f
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: Rename some variables.
parent
62c1fb09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
core.c
dlls/d3dx9_36/core.c
+13
-11
No files found.
dlls/d3dx9_36/core.c
View file @
404de72f
...
@@ -35,8 +35,8 @@ struct ID3DXBufferImpl
...
@@ -35,8 +35,8 @@ struct ID3DXBufferImpl
ID3DXBuffer
ID3DXBuffer_iface
;
ID3DXBuffer
ID3DXBuffer_iface
;
LONG
ref
;
LONG
ref
;
DWORD
*
buffer
;
void
*
buffer
;
DWORD
bufferS
ize
;
DWORD
s
ize
;
};
};
static
inline
struct
ID3DXBufferImpl
*
impl_from_ID3DXBuffer
(
ID3DXBuffer
*
iface
)
static
inline
struct
ID3DXBufferImpl
*
impl_from_ID3DXBuffer
(
ID3DXBuffer
*
iface
)
...
@@ -94,39 +94,41 @@ static LPVOID WINAPI ID3DXBufferImpl_GetBufferPointer(ID3DXBuffer *iface)
...
@@ -94,39 +94,41 @@ static LPVOID WINAPI ID3DXBufferImpl_GetBufferPointer(ID3DXBuffer *iface)
static
DWORD
WINAPI
ID3DXBufferImpl_GetBufferSize
(
ID3DXBuffer
*
iface
)
static
DWORD
WINAPI
ID3DXBufferImpl_GetBufferSize
(
ID3DXBuffer
*
iface
)
{
{
struct
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
struct
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
return
This
->
bufferS
ize
;
return
This
->
s
ize
;
}
}
const
ID3DXBufferVtbl
D3DXBuffer
_Vtbl
=
static
const
struct
ID3DXBufferVtbl
ID3DXBufferImpl
_Vtbl
=
{
{
/* IUnknown methods */
ID3DXBufferImpl_QueryInterface
,
ID3DXBufferImpl_QueryInterface
,
ID3DXBufferImpl_AddRef
,
ID3DXBufferImpl_AddRef
,
ID3DXBufferImpl_Release
,
ID3DXBufferImpl_Release
,
/* ID3DXBuffer methods */
ID3DXBufferImpl_GetBufferPointer
,
ID3DXBufferImpl_GetBufferPointer
,
ID3DXBufferImpl_GetBufferSize
ID3DXBufferImpl_GetBufferSize
};
};
HRESULT
WINAPI
D3DXCreateBuffer
(
DWORD
NumBytes
,
LPD3DXBUFFER
*
ppB
uffer
)
HRESULT
WINAPI
D3DXCreateBuffer
(
DWORD
size
,
LPD3DXBUFFER
*
b
uffer
)
{
{
struct
ID3DXBufferImpl
*
object
;
struct
ID3DXBufferImpl
*
object
;
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
object
==
NULL
)
if
(
object
==
NULL
)
{
{
*
ppB
uffer
=
NULL
;
*
b
uffer
=
NULL
;
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
}
}
object
->
ID3DXBuffer_iface
.
lpVtbl
=
&
D3DXBuffer
_Vtbl
;
object
->
ID3DXBuffer_iface
.
lpVtbl
=
&
ID3DXBufferImpl
_Vtbl
;
object
->
ref
=
1
;
object
->
ref
=
1
;
object
->
bufferSize
=
NumBytes
;
object
->
size
=
size
;
object
->
buffer
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
NumBytes
);
object
->
buffer
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
size
);
if
(
object
->
buffer
==
NULL
)
if
(
object
->
buffer
==
NULL
)
{
{
HeapFree
(
GetProcessHeap
(),
0
,
object
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
*
ppB
uffer
=
NULL
;
*
b
uffer
=
NULL
;
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
}
}
*
ppB
uffer
=
&
object
->
ID3DXBuffer_iface
;
*
b
uffer
=
&
object
->
ID3DXBuffer_iface
;
return
D3D_OK
;
return
D3D_OK
;
}
}
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