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
cb49cff0
Commit
cb49cff0
authored
Oct 09, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Introduce impl_from_IDirect3DRMFrameArray().
parent
392a65fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
22 deletions
+20
-22
frame.c
dlls/d3drm/frame.c
+20
-22
No files found.
dlls/d3drm/frame.c
View file @
cb49cff0
...
...
@@ -92,6 +92,11 @@ static inline IDirect3DRMFrameImpl *impl_from_IDirect3DRMFrame3(IDirect3DRMFrame
static
inline
IDirect3DRMFrameImpl
*
unsafe_impl_from_IDirect3DRMFrame3
(
IDirect3DRMFrame3
*
iface
);
static
inline
IDirect3DRMFrameArrayImpl
*
impl_from_IDirect3DRMFrameArray
(
IDirect3DRMFrameArray
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDirect3DRMFrameArrayImpl
,
IDirect3DRMFrameArray_iface
);
}
static
inline
IDirect3DRMVisualArrayImpl
*
impl_from_IDirect3DRMVisualArray
(
IDirect3DRMVisualArray
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDirect3DRMVisualArrayImpl
,
IDirect3DRMVisualArray_iface
);
...
...
@@ -102,34 +107,27 @@ static inline struct d3drm_light_array *impl_from_IDirect3DRMLightArray(IDirect3
return
CONTAINING_RECORD
(
iface
,
struct
d3drm_light_array
,
IDirect3DRMLightArray_iface
);
}
/*** IUnknown methods ***/
static
HRESULT
WINAPI
IDirect3DRMFrameArrayImpl_QueryInterface
(
IDirect3DRMFrameArray
*
iface
,
REFIID
riid
,
void
**
object
)
static
HRESULT
WINAPI
IDirect3DRMFrameArrayImpl_QueryInterface
(
IDirect3DRMFrameArray
*
iface
,
REFIID
riid
,
void
**
out
)
{
IDirect3DRMFrameArrayImpl
*
This
=
(
IDirect3DRMFrameArrayImpl
*
)
iface
;
TRACE
(
"(%p/%p)->(%s, %p)
\n
"
,
iface
,
This
,
debugstr_guid
(
riid
),
object
);
*
object
=
NULL
;
TRACE
(
"iface %p, riid %s, out %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
out
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DRMFrameArray
))
{
*
object
=
&
This
->
IDirect3DRMFrameArray_iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IDirect3DRMFrameArray
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
))
{
FIXME
(
"interface %s not implemented
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
IDirect3DRMFrameArray_AddRef
(
iface
);
*
out
=
iface
;
return
S_OK
;
}
IDirect3DRMFrameArray_AddRef
(
iface
);
return
S_OK
;
WARN
(
"%s not implemented, returning E_NOINTERFACE.
\n
"
,
debugstr_guid
(
riid
));
*
out
=
NULL
;
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
IDirect3DRMFrameArrayImpl_AddRef
(
IDirect3DRMFrameArray
*
iface
)
{
IDirect3DRMFrameArrayImpl
*
This
=
(
IDirect3DRMFrameArrayImpl
*
)
iface
;
IDirect3DRMFrameArrayImpl
*
This
=
impl_from_IDirect3DRMFrameArray
(
iface
)
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(): new ref = %u
\n
"
,
This
,
ref
);
...
...
@@ -139,7 +137,7 @@ static ULONG WINAPI IDirect3DRMFrameArrayImpl_AddRef(IDirect3DRMFrameArray* ifac
static
ULONG
WINAPI
IDirect3DRMFrameArrayImpl_Release
(
IDirect3DRMFrameArray
*
iface
)
{
IDirect3DRMFrameArrayImpl
*
This
=
(
IDirect3DRMFrameArrayImpl
*
)
iface
;
IDirect3DRMFrameArrayImpl
*
This
=
impl_from_IDirect3DRMFrameArray
(
iface
)
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
i
;
...
...
@@ -159,7 +157,7 @@ static ULONG WINAPI IDirect3DRMFrameArrayImpl_Release(IDirect3DRMFrameArray* ifa
/*** IDirect3DRMArray methods ***/
static
DWORD
WINAPI
IDirect3DRMFrameArrayImpl_GetSize
(
IDirect3DRMFrameArray
*
iface
)
{
IDirect3DRMFrameArrayImpl
*
This
=
(
IDirect3DRMFrameArrayImpl
*
)
iface
;
IDirect3DRMFrameArrayImpl
*
This
=
impl_from_IDirect3DRMFrameArray
(
iface
)
;
TRACE
(
"(%p)->() = %d
\n
"
,
This
,
This
->
size
);
...
...
@@ -170,7 +168,7 @@ static DWORD WINAPI IDirect3DRMFrameArrayImpl_GetSize(IDirect3DRMFrameArray* ifa
static
HRESULT
WINAPI
IDirect3DRMFrameArrayImpl_GetElement
(
IDirect3DRMFrameArray
*
iface
,
DWORD
index
,
IDirect3DRMFrame
**
frame
)
{
IDirect3DRMFrameArrayImpl
*
This
=
(
IDirect3DRMFrameArrayImpl
*
)
iface
;
IDirect3DRMFrameArrayImpl
*
This
=
impl_from_IDirect3DRMFrameArray
(
iface
)
;
TRACE
(
"(%p)->(%u, %p)
\n
"
,
This
,
index
,
frame
);
...
...
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