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
55ee7643
Commit
55ee7643
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 LPDIRECT3DDEVICE2.
parent
0ac2b823
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
22 deletions
+20
-22
d3drm.c
dlls/d3drm/d3drm.c
+4
-6
device.c
dlls/d3drm/device.c
+8
-10
d3drm.h
include/d3drm.h
+4
-2
d3drmobj.h
include/d3drmobj.h
+4
-4
No files found.
dlls/d3drm/d3drm.c
View file @
55ee7643
...
...
@@ -629,9 +629,8 @@ static HRESULT WINAPI IDirect3DRM2Impl_CreateDeviceFromSurface(IDirect3DRM2 *ifa
return
Direct3DRMDevice_create
(
&
IID_IDirect3DRMDevice2
,
(
IUnknown
**
)
ppDevice
);
}
static
HRESULT
WINAPI
IDirect3DRM2Impl_CreateDeviceFromD3D
(
IDirect3DRM2
*
iface
,
LPDIRECT3D2
pD3D
,
LPDIRECT3DDEVICE2
pD3DDev
,
LPDIRECT3DRMDEVICE2
*
ppDevice
)
static
HRESULT
WINAPI
IDirect3DRM2Impl_CreateDeviceFromD3D
(
IDirect3DRM2
*
iface
,
IDirect3D2
*
pD3D
,
IDirect3DDevice2
*
pD3DDev
,
IDirect3DRMDevice2
**
ppDevice
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM2
(
iface
);
...
...
@@ -1073,9 +1072,8 @@ static HRESULT WINAPI IDirect3DRM3Impl_CreateDeviceFromSurface(IDirect3DRM3 *ifa
return
Direct3DRMDevice_create
(
&
IID_IDirect3DRMDevice3
,
(
IUnknown
**
)
device
);
}
static
HRESULT
WINAPI
IDirect3DRM3Impl_CreateDeviceFromD3D
(
IDirect3DRM3
*
iface
,
LPDIRECT3D2
d3d
,
LPDIRECT3DDEVICE2
d3ddev
,
LPDIRECT3DRMDEVICE3
*
device
)
static
HRESULT
WINAPI
IDirect3DRM3Impl_CreateDeviceFromD3D
(
IDirect3DRM3
*
iface
,
IDirect3D2
*
d3d
,
IDirect3DDevice2
*
d3ddev
,
IDirect3DRMDevice3
**
device
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM3
(
iface
);
...
...
dlls/d3drm/device.c
View file @
55ee7643
...
...
@@ -421,9 +421,8 @@ static HRESULT WINAPI IDirect3DRMDevice2Impl_GetDirect3DDevice(IDirect3DRMDevice
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMDevice2Impl_InitFromD3D2
(
IDirect3DRMDevice2
*
iface
,
LPDIRECT3D2
lpD3D
,
LPDIRECT3DDEVICE2
lpD3DDev
)
static
HRESULT
WINAPI
IDirect3DRMDevice2Impl_InitFromD3D2
(
IDirect3DRMDevice2
*
iface
,
IDirect3D2
*
lpD3D
,
IDirect3DDevice2
*
lpD3DDev
)
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice2
(
iface
);
...
...
@@ -460,8 +459,8 @@ static DWORD WINAPI IDirect3DRMDevice2Impl_GetRenderMode(IDirect3DRMDevice2* ifa
return
IDirect3DRMDevice3_GetRenderMode
(
&
This
->
IDirect3DRMDevice3_iface
);
}
static
HRESULT
WINAPI
IDirect3DRMDevice2Impl_GetDirect3DDevice2
(
IDirect3DRMDevice2
*
iface
,
LPDIRECT3DDEVICE2
*
dev
)
static
HRESULT
WINAPI
IDirect3DRMDevice2Impl_GetDirect3DDevice2
(
IDirect3DRMDevice2
*
iface
,
IDirect3DDevice2
**
dev
)
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice2
(
iface
);
...
...
@@ -856,9 +855,8 @@ static HRESULT WINAPI IDirect3DRMDevice3Impl_GetDirect3DDevice(IDirect3DRMDevice
}
/*** IDirect3DRMDevice2 methods ***/
static
HRESULT
WINAPI
IDirect3DRMDevice3Impl_InitFromD3D2
(
IDirect3DRMDevice3
*
iface
,
LPDIRECT3D2
lpD3D
,
LPDIRECT3DDEVICE2
lpD3DDev
)
static
HRESULT
WINAPI
IDirect3DRMDevice3Impl_InitFromD3D2
(
IDirect3DRMDevice3
*
iface
,
IDirect3D2
*
lpD3D
,
IDirect3DDevice2
*
lpD3DDev
)
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice3
(
iface
);
...
...
@@ -897,8 +895,8 @@ static DWORD WINAPI IDirect3DRMDevice3Impl_GetRenderMode(IDirect3DRMDevice3* ifa
return
This
->
rendermode
;
}
static
HRESULT
WINAPI
IDirect3DRMDevice3Impl_GetDirect3DDevice2
(
IDirect3DRMDevice3
*
iface
,
LPDIRECT3DDEVICE2
*
dev
)
static
HRESULT
WINAPI
IDirect3DRMDevice3Impl_GetDirect3DDevice2
(
IDirect3DRMDevice3
*
iface
,
IDirect3DDevice2
**
dev
)
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice3
(
iface
);
...
...
include/d3drm.h
View file @
55ee7643
...
...
@@ -206,7 +206,8 @@ DECLARE_INTERFACE_(IDirect3DRM2,IUnknown)
STDMETHOD
(
CreateDevice
)(
THIS_
DWORD
,
DWORD
,
LPDIRECT3DRMDEVICE2
*
)
PURE
;
STDMETHOD
(
CreateDeviceFromSurface
)(
THIS_
GUID
*
guid
,
IDirectDraw
*
ddraw
,
IDirectDrawSurface
*
surface
,
IDirect3DRMDevice2
**
device
)
PURE
;
STDMETHOD
(
CreateDeviceFromD3D
)(
THIS_
LPDIRECT3D2
pD3D
,
LPDIRECT3DDEVICE2
pD3DDev
,
LPDIRECT3DRMDEVICE2
*
)
PURE
;
STDMETHOD
(
CreateDeviceFromD3D
)(
THIS_
IDirect3D2
*
d3d
,
IDirect3DDevice2
*
d3d_device
,
IDirect3DRMDevice2
**
device
)
PURE
;
STDMETHOD
(
CreateDeviceFromClipper
)(
THIS_
IDirectDrawClipper
*
clipper
,
GUID
*
guid
,
int
width
,
int
height
,
IDirect3DRMDevice2
**
device
)
PURE
;
STDMETHOD
(
CreateTextureFromSurface
)(
THIS_
IDirectDrawSurface
*
surface
,
...
...
@@ -344,7 +345,8 @@ DECLARE_INTERFACE_(IDirect3DRM3,IUnknown)
STDMETHOD
(
CreateDevice
)(
THIS_
DWORD
,
DWORD
,
LPDIRECT3DRMDEVICE3
*
)
PURE
;
STDMETHOD
(
CreateDeviceFromSurface
)(
THIS_
GUID
*
guid
,
IDirectDraw
*
ddraw
,
IDirectDrawSurface
*
surface
,
IDirect3DRMDevice3
**
device
)
PURE
;
STDMETHOD
(
CreateDeviceFromD3D
)(
THIS_
LPDIRECT3D2
pD3D
,
LPDIRECT3DDEVICE2
pD3DDev
,
LPDIRECT3DRMDEVICE3
*
)
PURE
;
STDMETHOD
(
CreateDeviceFromD3D
)(
THIS_
IDirect3D2
*
d3d
,
IDirect3DDevice2
*
d3d_device
,
IDirect3DRMDevice3
**
device
)
PURE
;
STDMETHOD
(
CreateDeviceFromClipper
)(
THIS_
IDirectDrawClipper
*
clipper
,
GUID
*
guid
,
int
width
,
int
height
,
IDirect3DRMDevice3
**
device
)
PURE
;
STDMETHOD
(
CreateTextureFromSurface
)(
THIS_
IDirectDrawSurface
*
surface
,
...
...
include/d3drmobj.h
View file @
55ee7643
...
...
@@ -526,11 +526,11 @@ DECLARE_INTERFACE_(IDirect3DRMDevice2,IDirect3DRMDevice)
STDMETHOD_
(
D3DRMTEXTUREQUALITY
,
GetTextureQuality
)(
THIS
)
PURE
;
STDMETHOD
(
GetDirect3DDevice
)(
THIS_
LPDIRECT3DDEVICE
*
)
PURE
;
/*** IDirect3DRMDevice2 methods ***/
STDMETHOD
(
InitFromD3D2
)(
THIS_
LPDIRECT3D2
pD3D
,
LPDIRECT3DDEVICE2
pD3DDev
)
PURE
;
STDMETHOD
(
InitFromD3D2
)(
THIS_
IDirect3D2
*
d3d
,
IDirect3DDevice2
*
device
)
PURE
;
STDMETHOD
(
InitFromSurface
)(
THIS_
GUID
*
guid
,
IDirectDraw
*
ddraw
,
IDirectDrawSurface
*
surface
)
PURE
;
STDMETHOD
(
SetRenderMode
)(
THIS_
DWORD
flags
)
PURE
;
STDMETHOD_
(
DWORD
,
GetRenderMode
)(
THIS
)
PURE
;
STDMETHOD
(
GetDirect3DDevice2
)(
THIS_
LPDIRECT3DDEVICE2
*
)
PURE
;
STDMETHOD
(
GetDirect3DDevice2
)(
THIS_
IDirect3DDevice2
**
device
)
PURE
;
};
#undef INTERFACE
...
...
@@ -671,11 +671,11 @@ DECLARE_INTERFACE_(IDirect3DRMDevice3,IDirect3DRMObject)
STDMETHOD_
(
D3DRMTEXTUREQUALITY
,
GetTextureQuality
)(
THIS
)
PURE
;
STDMETHOD
(
GetDirect3DDevice
)(
THIS_
LPDIRECT3DDEVICE
*
)
PURE
;
/*** IDirect3DRMDevice2 methods ***/
STDMETHOD
(
InitFromD3D2
)(
THIS_
LPDIRECT3D2
pD3D
,
LPDIRECT3DDEVICE2
pD3DDev
)
PURE
;
STDMETHOD
(
InitFromD3D2
)(
THIS_
IDirect3D2
*
d3d
,
IDirect3DDevice2
*
device
)
PURE
;
STDMETHOD
(
InitFromSurface
)(
THIS_
GUID
*
guid
,
IDirectDraw
*
ddraw
,
IDirectDrawSurface
*
surface
)
PURE
;
STDMETHOD
(
SetRenderMode
)(
THIS_
DWORD
flags
)
PURE
;
STDMETHOD_
(
DWORD
,
GetRenderMode
)(
THIS
)
PURE
;
STDMETHOD
(
GetDirect3DDevice2
)(
THIS_
LPDIRECT3DDEVICE2
*
)
PURE
;
STDMETHOD
(
GetDirect3DDevice2
)(
THIS_
IDirect3DDevice2
**
device
)
PURE
;
/*** IDirect3DRMDevice3 methods ***/
STDMETHOD
(
FindPreferredTextureFormat
)(
THIS_
DWORD
BitDepths
,
DWORD
flags
,
LPDDPIXELFORMAT
pDDPF
)
PURE
;
STDMETHOD
(
RenderStateChange
)(
THIS_
D3DRENDERSTATETYPE
drsType
,
DWORD
val
,
DWORD
flags
)
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