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
49041569
Commit
49041569
authored
Nov 20, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Avoid LPDIRECT3DDEVICE.
parent
55ee7643
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
18 deletions
+18
-18
d3drm.c
dlls/d3drm/d3drm.c
+2
-1
device.c
dlls/d3drm/device.c
+8
-10
d3drm.h
include/d3drm.h
+2
-1
d3drmobj.h
include/d3drmobj.h
+6
-6
No files found.
dlls/d3drm/d3drm.c
View file @
49041569
...
...
@@ -251,7 +251,8 @@ static HRESULT WINAPI IDirect3DRMImpl_CreateDeviceFromSurface(IDirect3DRM *iface
return
Direct3DRMDevice_create
(
&
IID_IDirect3DRMDevice
,
(
IUnknown
**
)
ppDevice
);
}
static
HRESULT
WINAPI
IDirect3DRMImpl_CreateDeviceFromD3D
(
IDirect3DRM
*
iface
,
LPDIRECT3D
pD3D
,
LPDIRECT3DDEVICE
pD3DDev
,
LPDIRECT3DRMDEVICE
*
ppDevice
)
static
HRESULT
WINAPI
IDirect3DRMImpl_CreateDeviceFromD3D
(
IDirect3DRM
*
iface
,
IDirect3D
*
pD3D
,
IDirect3DDevice
*
pD3DDev
,
IDirect3DRMDevice
**
ppDevice
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM
(
iface
);
...
...
dlls/d3drm/device.c
View file @
49041569
...
...
@@ -212,9 +212,8 @@ static HRESULT WINAPI IDirect3DRMDevice2Impl_Init(IDirect3DRMDevice2* iface, ULO
}
/*** IDirect3DRMDevice2 methods ***/
static
HRESULT
WINAPI
IDirect3DRMDevice2Impl_InitFromD3D
(
IDirect3DRMDevice2
*
iface
,
LPDIRECT3D
lpD3D
,
LPDIRECT3DDEVICE
lpD3DDev
)
static
HRESULT
WINAPI
IDirect3DRMDevice2Impl_InitFromD3D
(
IDirect3DRMDevice2
*
iface
,
IDirect3D
*
lpD3D
,
IDirect3DDevice
*
lpD3DDev
)
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice2
(
iface
);
...
...
@@ -411,8 +410,8 @@ static D3DRMTEXTUREQUALITY WINAPI IDirect3DRMDevice2Impl_GetTextureQuality(IDire
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMDevice2Impl_GetDirect3DDevice
(
IDirect3DRMDevice2
*
iface
,
LPDIRECT3DDEVICE
*
dev
)
static
HRESULT
WINAPI
IDirect3DRMDevice2Impl_GetDirect3DDevice
(
IDirect3DRMDevice2
*
iface
,
IDirect3DDevice
**
dev
)
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice2
(
iface
);
...
...
@@ -639,9 +638,8 @@ static HRESULT WINAPI IDirect3DRMDevice3Impl_Init(IDirect3DRMDevice3* iface, ULO
return
D3DRM_OK
;
}
static
HRESULT
WINAPI
IDirect3DRMDevice3Impl_InitFromD3D
(
IDirect3DRMDevice3
*
iface
,
LPDIRECT3D
lpD3D
,
LPDIRECT3DDEVICE
lpD3DDev
)
static
HRESULT
WINAPI
IDirect3DRMDevice3Impl_InitFromD3D
(
IDirect3DRMDevice3
*
iface
,
IDirect3D
*
lpD3D
,
IDirect3DDevice
*
lpD3DDev
)
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice3
(
iface
);
...
...
@@ -844,8 +842,8 @@ static D3DRMTEXTUREQUALITY WINAPI IDirect3DRMDevice3Impl_GetTextureQuality(IDire
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMDevice3Impl_GetDirect3DDevice
(
IDirect3DRMDevice3
*
iface
,
LPDIRECT3DDEVICE
*
dev
)
static
HRESULT
WINAPI
IDirect3DRMDevice3Impl_GetDirect3DDevice
(
IDirect3DRMDevice3
*
iface
,
IDirect3DDevice
**
dev
)
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice3
(
iface
);
...
...
include/d3drm.h
View file @
49041569
...
...
@@ -71,7 +71,8 @@ DECLARE_INTERFACE_(IDirect3DRM,IUnknown)
STDMETHOD
(
CreateDevice
)(
THIS_
DWORD
,
DWORD
,
LPDIRECT3DRMDEVICE
*
)
PURE
;
STDMETHOD
(
CreateDeviceFromSurface
)(
THIS_
GUID
*
guid
,
IDirectDraw
*
ddraw
,
IDirectDrawSurface
*
surface
,
IDirect3DRMDevice
**
device
)
PURE
;
STDMETHOD
(
CreateDeviceFromD3D
)(
THIS_
LPDIRECT3D
pD3D
,
LPDIRECT3DDEVICE
pD3DDev
,
LPDIRECT3DRMDEVICE
*
)
PURE
;
STDMETHOD
(
CreateDeviceFromD3D
)(
THIS_
IDirect3D
*
d3d
,
IDirect3DDevice
*
d3d_device
,
IDirect3DRMDevice
**
device
)
PURE
;
STDMETHOD
(
CreateDeviceFromClipper
)(
THIS_
IDirectDrawClipper
*
clipper
,
GUID
*
guid
,
int
width
,
int
height
,
IDirect3DRMDevice
**
device
)
PURE
;
STDMETHOD
(
CreateTextureFromSurface
)(
THIS_
IDirectDrawSurface
*
surface
,
...
...
include/d3drmobj.h
View file @
49041569
...
...
@@ -376,7 +376,7 @@ DECLARE_INTERFACE_(IDirect3DRMDevice,IUnknown)
STDMETHOD
(
GetClassName
)(
THIS_
LPDWORD
lpdwSize
,
LPSTR
lpName
)
PURE
;
/*** IDirect3DRMDevice methods ***/
STDMETHOD
(
Init
)(
THIS_
ULONG
width
,
ULONG
height
)
PURE
;
STDMETHOD
(
InitFromD3D
)(
THIS_
LPDIRECT3D
pD3D
,
LPDIRECT3DDEVICE
pD3DDev
)
PURE
;
STDMETHOD
(
InitFromD3D
)(
THIS_
IDirect3D
*
d3d
,
IDirect3DDevice
*
d3d_device
)
PURE
;
STDMETHOD
(
InitFromClipper
)(
THIS_
IDirectDrawClipper
*
clipper
,
GUID
*
guid
,
int
width
,
int
height
)
PURE
;
STDMETHOD
(
Update
)(
THIS
)
PURE
;
STDMETHOD
(
AddUpdateCallback
)(
THIS_
D3DRMUPDATECALLBACK
,
LPVOID
arg
)
PURE
;
...
...
@@ -397,7 +397,7 @@ DECLARE_INTERFACE_(IDirect3DRMDevice,IUnknown)
STDMETHOD_
(
D3DRMRENDERQUALITY
,
GetQuality
)(
THIS
)
PURE
;
STDMETHOD_
(
D3DCOLORMODEL
,
GetColorModel
)(
THIS
)
PURE
;
STDMETHOD_
(
D3DRMTEXTUREQUALITY
,
GetTextureQuality
)(
THIS
)
PURE
;
STDMETHOD
(
GetDirect3DDevice
)(
THIS_
LPDIRECT3DDEVICE
*
)
PURE
;
STDMETHOD
(
GetDirect3DDevice
)(
THIS_
IDirect3DDevice
**
d3d_device
)
PURE
;
};
#undef INTERFACE
...
...
@@ -503,7 +503,7 @@ DECLARE_INTERFACE_(IDirect3DRMDevice2,IDirect3DRMDevice)
STDMETHOD
(
GetClassName
)(
THIS_
LPDWORD
lpdwSize
,
LPSTR
lpName
)
PURE
;
/*** IDirect3DRMDevice methods ***/
STDMETHOD
(
Init
)(
THIS_
ULONG
width
,
ULONG
height
)
PURE
;
STDMETHOD
(
InitFromD3D
)(
THIS_
LPDIRECT3D
pD3D
,
LPDIRECT3DDEVICE
pD3DDev
)
PURE
;
STDMETHOD
(
InitFromD3D
)(
THIS_
IDirect3D
*
d3d
,
IDirect3DDevice
*
d3d_device
)
PURE
;
STDMETHOD
(
InitFromClipper
)(
THIS_
IDirectDrawClipper
*
clipper
,
GUID
*
guid
,
int
width
,
int
height
)
PURE
;
STDMETHOD
(
Update
)(
THIS
)
PURE
;
STDMETHOD
(
AddUpdateCallback
)(
THIS_
D3DRMUPDATECALLBACK
,
LPVOID
arg
)
PURE
;
...
...
@@ -524,7 +524,7 @@ DECLARE_INTERFACE_(IDirect3DRMDevice2,IDirect3DRMDevice)
STDMETHOD_
(
D3DRMRENDERQUALITY
,
GetQuality
)(
THIS
)
PURE
;
STDMETHOD_
(
D3DCOLORMODEL
,
GetColorModel
)(
THIS
)
PURE
;
STDMETHOD_
(
D3DRMTEXTUREQUALITY
,
GetTextureQuality
)(
THIS
)
PURE
;
STDMETHOD
(
GetDirect3DDevice
)(
THIS_
LPDIRECT3DDEVICE
*
)
PURE
;
STDMETHOD
(
GetDirect3DDevice
)(
THIS_
IDirect3DDevice
**
d3d_device
)
PURE
;
/*** IDirect3DRMDevice2 methods ***/
STDMETHOD
(
InitFromD3D2
)(
THIS_
IDirect3D2
*
d3d
,
IDirect3DDevice2
*
device
)
PURE
;
STDMETHOD
(
InitFromSurface
)(
THIS_
GUID
*
guid
,
IDirectDraw
*
ddraw
,
IDirectDrawSurface
*
surface
)
PURE
;
...
...
@@ -648,7 +648,7 @@ DECLARE_INTERFACE_(IDirect3DRMDevice3,IDirect3DRMObject)
STDMETHOD
(
GetClassName
)(
THIS_
LPDWORD
lpdwSize
,
LPSTR
lpName
)
PURE
;
/*** IDirect3DRMDevice methods ***/
STDMETHOD
(
Init
)(
THIS_
ULONG
width
,
ULONG
height
)
PURE
;
STDMETHOD
(
InitFromD3D
)(
THIS_
LPDIRECT3D
pD3D
,
LPDIRECT3DDEVICE
pD3DDev
)
PURE
;
STDMETHOD
(
InitFromD3D
)(
THIS_
IDirect3D
*
d3d
,
IDirect3DDevice
*
d3d_device
)
PURE
;
STDMETHOD
(
InitFromClipper
)(
THIS_
IDirectDrawClipper
*
clipper
,
GUID
*
guid
,
int
width
,
int
height
)
PURE
;
STDMETHOD
(
Update
)(
THIS
)
PURE
;
STDMETHOD
(
AddUpdateCallback
)(
THIS_
D3DRMUPDATECALLBACK
,
LPVOID
arg
)
PURE
;
...
...
@@ -669,7 +669,7 @@ DECLARE_INTERFACE_(IDirect3DRMDevice3,IDirect3DRMObject)
STDMETHOD_
(
D3DRMRENDERQUALITY
,
GetQuality
)(
THIS
)
PURE
;
STDMETHOD_
(
D3DCOLORMODEL
,
GetColorModel
)(
THIS
)
PURE
;
STDMETHOD_
(
D3DRMTEXTUREQUALITY
,
GetTextureQuality
)(
THIS
)
PURE
;
STDMETHOD
(
GetDirect3DDevice
)(
THIS_
LPDIRECT3DDEVICE
*
)
PURE
;
STDMETHOD
(
GetDirect3DDevice
)(
THIS_
IDirect3DDevice
**
d3d_device
)
PURE
;
/*** IDirect3DRMDevice2 methods ***/
STDMETHOD
(
InitFromD3D2
)(
THIS_
IDirect3D2
*
d3d
,
IDirect3DDevice2
*
device
)
PURE
;
STDMETHOD
(
InitFromSurface
)(
THIS_
GUID
*
guid
,
IDirectDraw
*
ddraw
,
IDirectDrawSurface
*
surface
)
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