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
c5cf5f8e
Commit
c5cf5f8e
authored
Jan 19, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Jan 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Reorder frame creation function to avoid forward declarations.
parent
a0cb4e63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
28 deletions
+25
-28
frame.c
dlls/d3drm/frame.c
+25
-28
No files found.
dlls/d3drm/frame.c
View file @
c5cf5f8e
...
...
@@ -35,9 +35,6 @@ typedef struct {
LONG
ref
;
}
IDirect3DRMFrameImpl
;
static
const
struct
IDirect3DRMFrame2Vtbl
Direct3DRMFrame2_Vtbl
;
static
const
struct
IDirect3DRMFrame3Vtbl
Direct3DRMFrame3_Vtbl
;
static
inline
IDirect3DRMFrameImpl
*
impl_from_IDirect3DRMFrame2
(
IDirect3DRMFrame2
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDirect3DRMFrameImpl
,
IDirect3DRMFrame2_iface
);
...
...
@@ -48,31 +45,6 @@ static inline IDirect3DRMFrameImpl *impl_from_IDirect3DRMFrame3(IDirect3DRMFrame
return
CONTAINING_RECORD
(
iface
,
IDirect3DRMFrameImpl
,
IDirect3DRMFrame3_iface
);
}
HRESULT
Direct3DRMFrame_create
(
REFIID
riid
,
IUnknown
**
ppObj
)
{
IDirect3DRMFrameImpl
*
object
;
TRACE
(
"(%p)
\n
"
,
ppObj
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMFrameImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRMFrame2_iface
.
lpVtbl
=
&
Direct3DRMFrame2_Vtbl
;
object
->
IDirect3DRMFrame3_iface
.
lpVtbl
=
&
Direct3DRMFrame3_Vtbl
;
object
->
ref
=
1
;
if
(
IsEqualGUID
(
riid
,
&
IID_IDirect3DRMFrame3
))
*
ppObj
=
(
IUnknown
*
)
&
object
->
IDirect3DRMFrame3_iface
;
else
*
ppObj
=
(
IUnknown
*
)
&
object
->
IDirect3DRMFrame2_iface
;
return
S_OK
;
}
/*** IUnknown methods ***/
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_QueryInterface
(
IDirect3DRMFrame2
*
iface
,
REFIID
riid
,
void
**
object
)
...
...
@@ -1963,3 +1935,28 @@ static const struct IDirect3DRMFrame3Vtbl Direct3DRMFrame3_Vtbl =
IDirect3DRMFrame3Impl_SetMaterialOverride
,
IDirect3DRMFrame3Impl_GetMaterialOverride
};
HRESULT
Direct3DRMFrame_create
(
REFIID
riid
,
IUnknown
**
ppObj
)
{
IDirect3DRMFrameImpl
*
object
;
TRACE
(
"(%p)
\n
"
,
ppObj
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMFrameImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRMFrame2_iface
.
lpVtbl
=
&
Direct3DRMFrame2_Vtbl
;
object
->
IDirect3DRMFrame3_iface
.
lpVtbl
=
&
Direct3DRMFrame3_Vtbl
;
object
->
ref
=
1
;
if
(
IsEqualGUID
(
riid
,
&
IID_IDirect3DRMFrame3
))
*
ppObj
=
(
IUnknown
*
)
&
object
->
IDirect3DRMFrame3_iface
;
else
*
ppObj
=
(
IUnknown
*
)
&
object
->
IDirect3DRMFrame2_iface
;
return
S_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