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
ee6734e8
Commit
ee6734e8
authored
Aug 13, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Avoid LPDIRECT3DRMLIGHTARRAY.
parent
cf3053f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
17 deletions
+15
-17
frame.c
dlls/d3drm/frame.c
+5
-7
d3drm.c
dlls/d3drm/tests/d3drm.c
+7
-7
d3drmobj.h
include/d3drmobj.h
+3
-3
No files found.
dlls/d3drm/frame.c
View file @
ee6734e8
...
...
@@ -703,14 +703,13 @@ static D3DCOLOR WINAPI IDirect3DRMFrame2Impl_GetColor(IDirect3DRMFrame2* iface)
return
0
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_GetLights
(
IDirect3DRMFrame2
*
iface
,
LPDIRECT3DRMLIGHTARRAY
*
lights
)
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_GetLights
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMLightArray
**
lights
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
IDirect3DRMFrameImpl
*
frame
=
impl_from_IDirect3DRMFrame2
(
iface
);
TRACE
(
"
(%p/%p)->(%p)
\n
"
,
iface
,
This
,
lights
);
TRACE
(
"
iface %p, lights %p.
\n
"
,
iface
,
lights
);
return
IDirect3DRMFrame3_GetLights
(
&
This
->
IDirect3DRMFrame3_iface
,
lights
);
return
IDirect3DRMFrame3_GetLights
(
&
frame
->
IDirect3DRMFrame3_iface
,
lights
);
}
static
D3DRMMATERIALMODE
WINAPI
IDirect3DRMFrame2Impl_GetMaterialMode
(
IDirect3DRMFrame2
*
iface
)
...
...
@@ -1721,8 +1720,7 @@ static D3DCOLOR WINAPI IDirect3DRMFrame3Impl_GetColor(IDirect3DRMFrame3* iface)
return
0
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame3Impl_GetLights
(
IDirect3DRMFrame3
*
iface
,
LPDIRECT3DRMLIGHTARRAY
*
lights
)
static
HRESULT
WINAPI
IDirect3DRMFrame3Impl_GetLights
(
IDirect3DRMFrame3
*
iface
,
IDirect3DRMLightArray
**
lights
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame3
(
iface
);
IDirect3DRMLightArrayImpl
*
obj
;
...
...
dlls/d3drm/tests/d3drm.c
View file @
ee6734e8
...
...
@@ -918,7 +918,7 @@ static void test_Frame(void)
IDirect3DRMVisualArray
*
visual_array
;
IDirect3DRMLight
*
light1
;
IDirect3DRMLight
*
light_tmp
;
LPDIRECT3DRMLIGHTARRAY
pLightA
rray
;
IDirect3DRMLightArray
*
light_a
rray
;
D3DCOLOR
color
;
DWORD
count
;
CHAR
cname
[
64
]
=
{
0
};
...
...
@@ -1193,18 +1193,18 @@ static void test_Frame(void)
CHECK_REFCOUNT
(
pFrameP1
,
3
);
CHECK_REFCOUNT
(
light1
,
2
);
pLightA
rray
=
NULL
;
hr
=
IDirect3DRMFrame_GetLights
(
pFrameP1
,
&
pLightA
rray
);
light_a
rray
=
NULL
;
hr
=
IDirect3DRMFrame_GetLights
(
pFrameP1
,
&
light_a
rray
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get lights (hr = %x)
\n
"
,
hr
);
if
(
pLightA
rray
)
if
(
light_a
rray
)
{
count
=
IDirect3DRMLightArray_GetSize
(
pLightA
rray
);
count
=
IDirect3DRMLightArray_GetSize
(
light_a
rray
);
ok
(
count
==
1
,
"count = %u
\n
"
,
count
);
hr
=
IDirect3DRMLightArray_GetElement
(
pLightA
rray
,
0
,
&
light_tmp
);
hr
=
IDirect3DRMLightArray_GetElement
(
light_a
rray
,
0
,
&
light_tmp
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get element (hr = %x)
\n
"
,
hr
);
ok
(
light_tmp
==
light1
,
"light_tmp = %p
\n
"
,
light_tmp
);
IDirect3DRMLight_Release
(
light_tmp
);
IDirect3DRMLightArray_Release
(
pLightA
rray
);
IDirect3DRMLightArray_Release
(
light_a
rray
);
}
/* Delete Light */
...
...
include/d3drmobj.h
View file @
ee6734e8
...
...
@@ -1106,7 +1106,7 @@ DECLARE_INTERFACE_(IDirect3DRMFrame,IDirect3DRMVisual)
STDMETHOD
(
AddVisual
)(
THIS_
IDirect3DRMVisual
*
visual
)
PURE
;
STDMETHOD
(
GetChildren
)(
THIS_
struct
IDirect3DRMFrameArray
**
children
)
PURE
;
STDMETHOD_
(
D3DCOLOR
,
GetColor
)(
THIS
)
PURE
;
STDMETHOD
(
GetLights
)(
THIS_
LPDIRECT3DRMLIGHTARRAY
*
lights
)
PURE
;
STDMETHOD
(
GetLights
)(
THIS_
struct
IDirect3DRMLightArray
*
*
lights
)
PURE
;
STDMETHOD_
(
D3DRMMATERIALMODE
,
GetMaterialMode
)(
THIS
)
PURE
;
STDMETHOD
(
GetParent
)(
THIS_
IDirect3DRMFrame
**
parent
)
PURE
;
STDMETHOD
(
GetPosition
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVECTOR
*
return_position
)
PURE
;
...
...
@@ -1339,7 +1339,7 @@ DECLARE_INTERFACE_(IDirect3DRMFrame2,IDirect3DRMFrame)
STDMETHOD
(
AddVisual
)(
THIS_
IDirect3DRMVisual
*
visual
)
PURE
;
STDMETHOD
(
GetChildren
)(
THIS_
struct
IDirect3DRMFrameArray
**
children
)
PURE
;
STDMETHOD_
(
D3DCOLOR
,
GetColor
)(
THIS
)
PURE
;
STDMETHOD
(
GetLights
)(
THIS_
LPDIRECT3DRMLIGHTARRAY
*
lights
)
PURE
;
STDMETHOD
(
GetLights
)(
THIS_
struct
IDirect3DRMLightArray
*
*
lights
)
PURE
;
STDMETHOD_
(
D3DRMMATERIALMODE
,
GetMaterialMode
)(
THIS
)
PURE
;
STDMETHOD
(
GetParent
)(
THIS_
IDirect3DRMFrame
**
parent
)
PURE
;
STDMETHOD
(
GetPosition
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVECTOR
*
return_position
)
PURE
;
...
...
@@ -1621,7 +1621,7 @@ DECLARE_INTERFACE_(IDirect3DRMFrame3,IDirect3DRMVisual)
STDMETHOD
(
AddVisual
)(
THIS_
LPUNKNOWN
)
PURE
;
STDMETHOD
(
GetChildren
)(
THIS_
struct
IDirect3DRMFrameArray
**
children
)
PURE
;
STDMETHOD_
(
D3DCOLOR
,
GetColor
)(
THIS
)
PURE
;
STDMETHOD
(
GetLights
)(
THIS_
LPDIRECT3DRMLIGHTARRAY
*
lights
)
PURE
;
STDMETHOD
(
GetLights
)(
THIS_
struct
IDirect3DRMLightArray
*
*
lights
)
PURE
;
STDMETHOD_
(
D3DRMMATERIALMODE
,
GetMaterialMode
)(
THIS
)
PURE
;
STDMETHOD
(
GetParent
)(
THIS_
IDirect3DRMFrame3
**
parent
)
PURE
;
STDMETHOD
(
GetPosition
)(
THIS_
IDirect3DRMFrame3
*
reference
,
D3DVECTOR
*
return_position
)
PURE
;
...
...
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