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
4001e60e
Commit
4001e60e
authored
Apr 13, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Apr 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Implement IDirect3DRMFrameX_DeleteChild.
parent
470468c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
6 deletions
+28
-6
frame.c
dlls/d3drm/frame.c
+26
-4
d3drm.c
dlls/d3drm/tests/d3drm.c
+2
-2
No files found.
dlls/d3drm/frame.c
View file @
4001e60e
...
...
@@ -482,10 +482,16 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_DeleteChild(IDirect3DRMFrame2* iface
LPDIRECT3DRMFRAME
frame
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
IDirect3DRMFrameImpl
*
child
;
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
frame
);
TRACE
(
"(%p/%p)->(%p)
\n
"
,
iface
,
This
,
frame
);
return
E_NOTIMPL
;
child
=
unsafe_impl_from_IDirect3DRMFrame2
((
LPDIRECT3DRMFRAME2
)
frame
);
if
(
!
child
)
return
D3DRMERR_BADOBJECT
;
return
IDirect3DRMFrame3_DeleteChild
(
&
This
->
IDirect3DRMFrame3_iface
,
&
child
->
IDirect3DRMFrame3_iface
);
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_DeleteLight
(
IDirect3DRMFrame2
*
iface
,
...
...
@@ -1358,10 +1364,26 @@ static HRESULT WINAPI IDirect3DRMFrame3Impl_DeleteChild(IDirect3DRMFrame3* iface
LPDIRECT3DRMFRAME3
frame
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame3
(
iface
);
ULONG
i
;
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
frame
);
TRACE
(
"(%p/%p)->(%p)
\n
"
,
iface
,
This
,
frame
);
return
E_NOTIMPL
;
if
(
!
frame
)
return
D3DRMERR_BADOBJECT
;
/* Check if child exists */
for
(
i
=
0
;
i
<
This
->
nb_children
;
i
++
)
if
(
This
->
children
[
i
]
==
frame
)
break
;
if
(
i
==
This
->
nb_children
)
return
D3DRMERR_BADVALUE
;
memmove
(
This
->
children
+
i
,
This
->
children
+
i
+
1
,
sizeof
(
IDirect3DRMFrame3
*
)
*
(
This
->
nb_children
-
1
-
i
));
IDirect3DRMFrame3_Release
(
frame
);
This
->
nb_children
--
;
return
D3DRM_OK
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame3Impl_DeleteLight
(
IDirect3DRMFrame3
*
iface
,
...
...
dlls/d3drm/tests/d3drm.c
View file @
4001e60e
...
...
@@ -450,7 +450,7 @@ static void test_Frame(void)
CHECK_REFCOUNT
(
pFrameP1
,
1
);
hr
=
IDirect3DRMFrame_DeleteChild
(
pFrameP1
,
NULL
);
todo_wine
ok
(
hr
==
D3DRMERR_BADOBJECT
,
"Should have returned D3DRMERR_BADOBJECT (hr = %x)
\n
"
,
hr
);
ok
(
hr
==
D3DRMERR_BADOBJECT
,
"Should have returned D3DRMERR_BADOBJECT (hr = %x)
\n
"
,
hr
);
CHECK_REFCOUNT
(
pFrameP1
,
1
);
/* Add child to first parent */
...
...
@@ -547,7 +547,7 @@ static void test_Frame(void)
/* Delete child */
hr
=
IDirect3DRMFrame_DeleteChild
(
pFrameP2
,
pFrameC
);
todo_wine
ok
(
hr
==
D3DRM_OK
,
"Cannot delete child frame (hr = %x)
\n
"
,
hr
);
ok
(
hr
==
D3DRM_OK
,
"Cannot delete child frame (hr = %x)
\n
"
,
hr
);
todo_wine
CHECK_REFCOUNT
(
pFrameC
,
1
);
pArray
=
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