Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
861b1053
Commit
861b1053
authored
Jun 06, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Avoid LPDIRECT3DRMVISUALARRAY.
parent
0330ae84
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
frame.c
dlls/d3drm/frame.c
+1
-2
d3drm.c
dlls/d3drm/tests/d3drm.c
+7
-7
d3drmobj.h
include/d3drmobj.h
+2
-2
No files found.
dlls/d3drm/frame.c
View file @
861b1053
...
...
@@ -819,8 +819,7 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_GetOrientation(IDirect3DRMFrame2 *if
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_GetVisuals
(
IDirect3DRMFrame2
*
iface
,
LPDIRECT3DRMVISUALARRAY
*
visuals
)
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_GetVisuals
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMVisualArray
**
visuals
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
IDirect3DRMVisualArrayImpl
*
obj
;
...
...
dlls/d3drm/tests/d3drm.c
View file @
861b1053
...
...
@@ -915,7 +915,7 @@ static void test_Frame(void)
IDirect3DRMMeshBuilder
*
mesh_builder
;
IDirect3DRMVisual
*
visual1
;
IDirect3DRMVisual
*
visual_tmp
;
LPDIRECT3DRMVISUALARRAY
pVisualA
rray
;
IDirect3DRMVisualArray
*
visual_a
rray
;
IDirect3DRMLight
*
light1
;
IDirect3DRMLight
*
light_tmp
;
LPDIRECT3DRMLIGHTARRAY
pLightArray
;
...
...
@@ -1154,18 +1154,18 @@ static void test_Frame(void)
CHECK_REFCOUNT
(
pFrameP1
,
3
);
CHECK_REFCOUNT
(
visual1
,
2
);
pVisualA
rray
=
NULL
;
hr
=
IDirect3DRMFrame_GetVisuals
(
pFrameP1
,
&
pVisualA
rray
);
visual_a
rray
=
NULL
;
hr
=
IDirect3DRMFrame_GetVisuals
(
pFrameP1
,
&
visual_a
rray
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get visuals (hr = %x)
\n
"
,
hr
);
if
(
pVisualA
rray
)
if
(
visual_a
rray
)
{
count
=
IDirect3DRMVisualArray_GetSize
(
pVisualA
rray
);
count
=
IDirect3DRMVisualArray_GetSize
(
visual_a
rray
);
ok
(
count
==
1
,
"count = %u
\n
"
,
count
);
hr
=
IDirect3DRMVisualArray_GetElement
(
pVisualA
rray
,
0
,
&
visual_tmp
);
hr
=
IDirect3DRMVisualArray_GetElement
(
visual_a
rray
,
0
,
&
visual_tmp
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get element (hr = %x)
\n
"
,
hr
);
ok
(
visual_tmp
==
visual1
,
"visual_tmp = %p
\n
"
,
visual_tmp
);
IDirect3DRMVisual_Release
(
visual_tmp
);
IDirect3DRMVisualArray_Release
(
pVisualA
rray
);
IDirect3DRMVisualArray_Release
(
visual_a
rray
);
}
/* Delete Visual */
...
...
include/d3drmobj.h
View file @
861b1053
...
...
@@ -1117,7 +1117,7 @@ DECLARE_INTERFACE_(IDirect3DRMFrame,IDirect3DRMVisual)
STDMETHOD
(
GetTransform
)(
THIS_
D3DRMMATRIX4D
return_matrix
)
PURE
;
STDMETHOD
(
GetVelocity
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVECTOR
*
return_velocity
,
BOOL
with_rotation
)
PURE
;
STDMETHOD
(
GetOrientation
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVECTOR
*
dir
,
D3DVECTOR
*
up
)
PURE
;
STDMETHOD
(
GetVisuals
)(
THIS_
LPDIRECT3DRMVISUALARRAY
*
visuals
)
PURE
;
STDMETHOD
(
GetVisuals
)(
THIS_
struct
IDirect3DRMVisualArray
*
*
visuals
)
PURE
;
STDMETHOD
(
GetTextureTopology
)(
THIS_
BOOL
*
wrap_u
,
BOOL
*
wrap_v
)
PURE
;
STDMETHOD
(
InverseTransform
)(
THIS_
D3DVECTOR
*
d
,
D3DVECTOR
*
s
)
PURE
;
STDMETHOD
(
Load
)(
THIS_
LPVOID
filename
,
LPVOID
name
,
D3DRMLOADOPTIONS
loadflags
,
D3DRMLOADTEXTURECALLBACK
,
...
...
@@ -1350,7 +1350,7 @@ DECLARE_INTERFACE_(IDirect3DRMFrame2,IDirect3DRMFrame)
STDMETHOD
(
GetTransform
)(
THIS_
D3DRMMATRIX4D
return_matrix
)
PURE
;
STDMETHOD
(
GetVelocity
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVECTOR
*
return_velocity
,
BOOL
with_rotation
)
PURE
;
STDMETHOD
(
GetOrientation
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVECTOR
*
dir
,
D3DVECTOR
*
up
)
PURE
;
STDMETHOD
(
GetVisuals
)(
THIS_
LPDIRECT3DRMVISUALARRAY
*
visuals
)
PURE
;
STDMETHOD
(
GetVisuals
)(
THIS_
struct
IDirect3DRMVisualArray
*
*
visuals
)
PURE
;
STDMETHOD
(
GetTextureTopology
)(
THIS_
BOOL
*
wrap_u
,
BOOL
*
wrap_v
)
PURE
;
STDMETHOD
(
InverseTransform
)(
THIS_
D3DVECTOR
*
d
,
D3DVECTOR
*
s
)
PURE
;
STDMETHOD
(
Load
)(
THIS_
LPVOID
filename
,
LPVOID
name
,
D3DRMLOADOPTIONS
loadflags
,
D3DRMLOADTEXTURECALLBACK
,
...
...
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