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
9eae7aed
Commit
9eae7aed
authored
Apr 17, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Avoid LPDIRECT3DRMOBJECT.
parent
c0a84454
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
26 deletions
+21
-26
d3drm.c
dlls/d3drm/d3drm.c
+9
-14
d3drm.c
dlls/d3drm/tests/d3drm.c
+1
-1
d3drm.h
include/d3drm.h
+3
-3
d3drmobj.h
include/d3drmobj.h
+8
-8
No files found.
dlls/d3drm/d3drm.c
View file @
9eae7aed
...
...
@@ -392,11 +392,10 @@ static HRESULT WINAPI IDirect3DRMImpl_GetDevices(IDirect3DRM* iface, LPDIRECT3DR
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMImpl_GetNamedObject
(
IDirect3DRM
*
iface
,
const
char
*
pName
,
LPDIRECT3DRMOBJECT
*
ppObject
)
static
HRESULT
WINAPI
IDirect3DRMImpl_GetNamedObject
(
IDirect3DRM
*
iface
,
const
char
*
name
,
IDirect3DRMObject
**
object
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM
(
iface
);
FIXME
(
"(%p/%p)->(%s,%p): stub
\n
"
,
iface
,
This
,
pName
,
ppObject
);
FIXME
(
"iface %p, name %s, object %p stub!
\n
"
,
iface
,
debugstr_a
(
name
),
object
);
return
E_NOTIMPL
;
}
...
...
@@ -795,12 +794,10 @@ static HRESULT WINAPI IDirect3DRM2Impl_GetDevices(IDirect3DRM2* iface,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRM2Impl_GetNamedObject
(
IDirect3DRM2
*
iface
,
const
char
*
pNam
e
,
LPDIRECT3DRMOBJECT
*
ppO
bject
)
static
HRESULT
WINAPI
IDirect3DRM2Impl_GetNamedObject
(
IDirect3DRM2
*
ifac
e
,
const
char
*
name
,
IDirect3DRMObject
**
o
bject
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM2
(
iface
);
FIXME
(
"(%p/%p)->(%s,%p): stub
\n
"
,
iface
,
This
,
pName
,
ppObject
);
FIXME
(
"iface %p, name %s, object %p stub!
\n
"
,
iface
,
debugstr_a
(
name
),
object
);
return
E_NOTIMPL
;
}
...
...
@@ -1237,12 +1234,10 @@ static HRESULT WINAPI IDirect3DRM3Impl_GetDevices(IDirect3DRM3* iface,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRM3Impl_GetNamedObject
(
IDirect3DRM3
*
iface
,
const
char
*
Nam
e
,
LPDIRECT3DRMOBJECT
*
O
bject
)
static
HRESULT
WINAPI
IDirect3DRM3Impl_GetNamedObject
(
IDirect3DRM3
*
ifac
e
,
const
char
*
name
,
IDirect3DRMObject
**
o
bject
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM3
(
iface
);
FIXME
(
"(%p/%p)->(%s,%p): stub
\n
"
,
iface
,
This
,
Name
,
Object
);
FIXME
(
"iface %p, name %s, object %p stub!
\n
"
,
iface
,
debugstr_a
(
name
),
object
);
return
E_NOTIMPL
;
}
...
...
dlls/d3drm/tests/d3drm.c
View file @
9eae7aed
...
...
@@ -1335,7 +1335,7 @@ static const GUID* refiids[] =
&
IID_IDirect3DRMMaterial
/* Not taken into account and not notified */
};
static
void
__cdecl
object_load_callback
(
LPDIRECT3DRMOBJECT
object
,
REFIID
objectguid
,
LPVOID
arg
)
static
void
__cdecl
object_load_callback
(
IDirect3DRMObject
*
object
,
REFIID
objectguid
,
LPVOID
arg
)
{
ok
(
object
!=
NULL
,
"Arg 1 should not be null
\n
"
);
ok
(
IsEqualGUID
(
objectguid
,
refiids
[
nb_objects
]),
"Arg 2 is incorrect
\n
"
);
...
...
include/d3drm.h
View file @
9eae7aed
...
...
@@ -93,7 +93,7 @@ DECLARE_INTERFACE_(IDirect3DRM,IUnknown)
STDMETHOD
(
SetDefaultTextureColors
)(
THIS_
DWORD
)
PURE
;
STDMETHOD
(
SetDefaultTextureShades
)(
THIS_
DWORD
)
PURE
;
STDMETHOD
(
GetDevices
)(
THIS_
LPDIRECT3DRMDEVICEARRAY
*
)
PURE
;
STDMETHOD
(
GetNamedObject
)(
THIS_
const
char
*
,
LPDIRECT3DRMOBJECT
*
)
PURE
;
STDMETHOD
(
GetNamedObject
)(
THIS_
const
char
*
name
,
IDirect3DRMObject
**
object
)
PURE
;
STDMETHOD
(
EnumerateObjects
)(
THIS_
D3DRMOBJECTCALLBACK
,
LPVOID
)
PURE
;
STDMETHOD
(
Load
)(
THIS_
LPVOID
,
LPVOID
,
LPIID
*
,
DWORD
,
D3DRMLOADOPTIONS
,
D3DRMLOADCALLBACK
,
LPVOID
,
D3DRMLOADTEXTURECALLBACK
,
LPVOID
,
LPDIRECT3DRMFRAME
)
PURE
;
...
...
@@ -229,7 +229,7 @@ DECLARE_INTERFACE_(IDirect3DRM2,IUnknown)
STDMETHOD
(
SetDefaultTextureColors
)(
THIS_
DWORD
)
PURE
;
STDMETHOD
(
SetDefaultTextureShades
)(
THIS_
DWORD
)
PURE
;
STDMETHOD
(
GetDevices
)(
THIS_
LPDIRECT3DRMDEVICEARRAY
*
)
PURE
;
STDMETHOD
(
GetNamedObject
)(
THIS_
const
char
*
,
LPDIRECT3DRMOBJECT
*
)
PURE
;
STDMETHOD
(
GetNamedObject
)(
THIS_
const
char
*
name
,
IDirect3DRMObject
**
object
)
PURE
;
STDMETHOD
(
EnumerateObjects
)(
THIS_
D3DRMOBJECTCALLBACK
,
LPVOID
)
PURE
;
STDMETHOD
(
Load
)(
THIS_
LPVOID
,
LPVOID
,
LPIID
*
,
DWORD
,
D3DRMLOADOPTIONS
,
D3DRMLOADCALLBACK
,
LPVOID
,
D3DRMLOADTEXTURECALLBACK
,
LPVOID
,
LPDIRECT3DRMFRAME
)
PURE
;
...
...
@@ -368,7 +368,7 @@ DECLARE_INTERFACE_(IDirect3DRM3,IUnknown)
STDMETHOD
(
SetDefaultTextureColors
)(
THIS_
DWORD
)
PURE
;
STDMETHOD
(
SetDefaultTextureShades
)(
THIS_
DWORD
)
PURE
;
STDMETHOD
(
GetDevices
)(
THIS_
LPDIRECT3DRMDEVICEARRAY
*
)
PURE
;
STDMETHOD
(
GetNamedObject
)(
THIS_
const
char
*
,
LPDIRECT3DRMOBJECT
*
)
PURE
;
STDMETHOD
(
GetNamedObject
)(
THIS_
const
char
*
name
,
IDirect3DRMObject
**
object
)
PURE
;
STDMETHOD
(
EnumerateObjects
)(
THIS_
D3DRMOBJECTCALLBACK
,
LPVOID
)
PURE
;
STDMETHOD
(
Load
)(
THIS_
LPVOID
,
LPVOID
,
LPIID
*
,
DWORD
,
D3DRMLOADOPTIONS
,
D3DRMLOADCALLBACK
,
LPVOID
,
D3DRMLOADTEXTURECALLBACK
,
LPVOID
,
LPDIRECT3DRMFRAME3
)
PURE
;
...
...
include/d3drmobj.h
View file @
9eae7aed
...
...
@@ -154,7 +154,7 @@ typedef struct IDirect3DRMClippedVisual *LPDIRECT3DRMCLIPPEDVISUAL, **LPLPDIRE
Types and structures
******************************************************************** */
typedef
void
(
__cdecl
*
D3DRMOBJECTCALLBACK
)(
LPDIRECT3DRMOBJECT
obj
,
LPVOID
arg
);
typedef
void
(
__cdecl
*
D3DRMOBJECTCALLBACK
)(
struct
IDirect3DRMObject
*
obj
,
void
*
arg
);
typedef
void
(
__cdecl
*
D3DRMFRAMEMOVECALLBACK
)(
LPDIRECT3DRMFRAME
obj
,
LPVOID
arg
,
D3DVALUE
delta
);
typedef
void
(
__cdecl
*
D3DRMFRAME3MOVECALLBACK
)(
LPDIRECT3DRMFRAME3
obj
,
LPVOID
arg
,
D3DVALUE
delta
);
typedef
void
(
__cdecl
*
D3DRMUPDATECALLBACK
)(
struct
IDirect3DRMDevice
*
device
,
void
*
ctx
,
int
count
,
D3DRECT
*
rects
);
...
...
@@ -164,7 +164,7 @@ typedef int (__cdecl *D3DRMUSERVISUALCALLBACK)(LPDIRECT3DRMUSERVISUAL obj, LPVOI
D3DRMUSERVISUALREASON
reason
,
LPDIRECT3DRMDEVICE
dev
,
LPDIRECT3DRMVIEWPORT
view
);
typedef
HRESULT
(
__cdecl
*
D3DRMLOADTEXTURECALLBACK
)(
char
*
tex_name
,
void
*
arg
,
LPDIRECT3DRMTEXTURE
*
);
typedef
HRESULT
(
__cdecl
*
D3DRMLOADTEXTURE3CALLBACK
)(
char
*
tex_name
,
void
*
arg
,
LPDIRECT3DRMTEXTURE3
*
);
typedef
void
(
__cdecl
*
D3DRMLOADCALLBACK
)(
LPDIRECT3DRMOBJECT
object
,
REFIID
objectguid
,
LPVOID
arg
);
typedef
void
(
__cdecl
*
D3DRMLOADCALLBACK
)(
struct
IDirect3DRMObject
*
object
,
REFIID
objectguid
,
void
*
arg
);
typedef
HRESULT
(
__cdecl
*
D3DRMDOWNSAMPLECALLBACK
)(
struct
IDirect3DRMTexture3
*
texture
,
void
*
ctx
,
IDirectDrawSurface
*
src_surface
,
IDirectDrawSurface
*
dst_surface
);
typedef
HRESULT
(
__cdecl
*
D3DRMVALIDATIONCALLBACK
)(
LPDIRECT3DRMTEXTURE3
lpDirect3DRMTexture
,
LPVOID
pArg
,
...
...
@@ -3575,8 +3575,8 @@ DECLARE_INTERFACE_(IDirect3DRMWrap, IDirect3DRMObject)
D3DVALUE
ou
,
D3DVALUE
ov
,
D3DVALUE
su
,
D3DVALUE
sv
)
PURE
;
STDMETHOD
(
Apply
)(
THIS_
LPDIRECT3DRMOBJECT
)
PURE
;
STDMETHOD
(
ApplyRelative
)(
THIS_
LPDIRECT3DRMFRAME
frame
,
LPDIRECT3DRMOBJECT
)
PURE
;
STDMETHOD
(
Apply
)(
THIS_
IDirect3DRMObject
*
object
)
PURE
;
STDMETHOD
(
ApplyRelative
)(
THIS_
IDirect3DRMFrame
*
frame
,
IDirect3DRMObject
*
object
)
PURE
;
};
#undef INTERFACE
...
...
@@ -4182,7 +4182,7 @@ DECLARE_INTERFACE_(IDirect3DRMObjectArray, IDirect3DRMArray)
/*** IDirect3DRMArray methods ***/
STDMETHOD_
(
DWORD
,
GetSize
)(
THIS
)
PURE
;
/*** IDirect3DRMObjectArray methods ***/
STDMETHOD
(
GetElement
)(
THIS_
DWORD
index
,
LPDIRECT3DRMOBJECT
*
)
PURE
;
STDMETHOD
(
GetElement
)(
THIS_
DWORD
index
,
IDirect3DRMObject
**
element
)
PURE
;
};
#undef INTERFACE
...
...
@@ -4559,12 +4559,12 @@ DECLARE_INTERFACE_(IDirect3DRMInterpolator, IDirect3DRMObject)
STDMETHOD
(
GetName
)(
THIS_
LPDWORD
lpdwSize
,
LPSTR
lpName
)
PURE
;
STDMETHOD
(
GetClassName
)(
THIS_
LPDWORD
lpdwSize
,
LPSTR
lpName
)
PURE
;
/*** IDirect3DRMInterpolator methods ***/
STDMETHOD
(
AttachObject
)(
THIS_
LPDIRECT3DRMOBJECT
)
PURE
;
STDMETHOD
(
AttachObject
)(
THIS_
IDirect3DRMObject
*
object
)
PURE
;
STDMETHOD
(
GetAttachedObjects
)(
THIS_
LPDIRECT3DRMOBJECTARRAY
*
)
PURE
;
STDMETHOD
(
DetachObject
)(
THIS_
LPDIRECT3DRMOBJECT
)
PURE
;
STDMETHOD
(
DetachObject
)(
THIS_
IDirect3DRMObject
*
object
)
PURE
;
STDMETHOD
(
SetIndex
)(
THIS_
D3DVALUE
)
PURE
;
STDMETHOD_
(
D3DVALUE
,
GetIndex
)(
THIS
)
PURE
;
STDMETHOD
(
Interpolate
)(
THIS_
D3DVALUE
,
LPDIRECT3DRMOBJECT
,
D3DRMINTERPOLATIONOPTIONS
)
PURE
;
STDMETHOD
(
Interpolate
)(
THIS_
D3DVALUE
index
,
IDirect3DRMObject
*
object
,
D3DRMINTERPOLATIONOPTIONS
flags
)
PURE
;
};
#undef INTERFACE
...
...
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