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
0a7e2acc
Commit
0a7e2acc
authored
Nov 19, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Avoid LPDIRECTDRAWCLIPPER.
parent
34dd6ff2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
27 deletions
+25
-27
d3drm.c
dlls/d3drm/d3drm.c
+10
-10
device.c
dlls/d3drm/device.c
+4
-6
d3drm.c
dlls/d3drm/tests/d3drm.c
+2
-2
d3drm.h
include/d3drm.h
+6
-6
d3drmobj.h
include/d3drmobj.h
+3
-3
No files found.
dlls/d3drm/d3drm.c
View file @
0a7e2acc
...
...
@@ -260,7 +260,9 @@ static HRESULT WINAPI IDirect3DRMImpl_CreateDeviceFromD3D(IDirect3DRM* iface, LP
return
Direct3DRMDevice_create
(
&
IID_IDirect3DRMDevice
,
(
IUnknown
**
)
ppDevice
);
}
static
HRESULT
WINAPI
IDirect3DRMImpl_CreateDeviceFromClipper
(
IDirect3DRM
*
iface
,
LPDIRECTDRAWCLIPPER
pDDClipper
,
LPGUID
pGUID
,
int
width
,
int
height
,
LPDIRECT3DRMDEVICE
*
ppDevice
)
static
HRESULT
WINAPI
IDirect3DRMImpl_CreateDeviceFromClipper
(
IDirect3DRM
*
iface
,
IDirectDrawClipper
*
pDDClipper
,
GUID
*
pGUID
,
int
width
,
int
height
,
IDirect3DRMDevice
**
ppDevice
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM
(
iface
);
...
...
@@ -638,10 +640,9 @@ static HRESULT WINAPI IDirect3DRM2Impl_CreateDeviceFromD3D(IDirect3DRM2* iface,
return
Direct3DRMDevice_create
(
&
IID_IDirect3DRMDevice2
,
(
IUnknown
**
)
ppDevice
);
}
static
HRESULT
WINAPI
IDirect3DRM2Impl_CreateDeviceFromClipper
(
IDirect3DRM2
*
iface
,
LPDIRECTDRAWCLIPPER
pDDClipper
,
LPGUID
pGUID
,
int
width
,
int
height
,
LPDIRECT3DRMDEVICE2
*
ppDevice
)
static
HRESULT
WINAPI
IDirect3DRM2Impl_CreateDeviceFromClipper
(
IDirect3DRM2
*
iface
,
IDirectDrawClipper
*
pDDClipper
,
GUID
*
pGUID
,
int
width
,
int
height
,
IDirect3DRMDevice2
**
ppDevice
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM2
(
iface
);
...
...
@@ -1083,14 +1084,13 @@ static HRESULT WINAPI IDirect3DRM3Impl_CreateDeviceFromD3D(IDirect3DRM3* iface,
return
Direct3DRMDevice_create
(
&
IID_IDirect3DRMDevice3
,
(
IUnknown
**
)
device
);
}
static
HRESULT
WINAPI
IDirect3DRM3Impl_CreateDeviceFromClipper
(
IDirect3DRM3
*
iface
,
LPDIRECTDRAWCLIPPER
clipper
,
LPGUID
GUID
,
int
width
,
int
height
,
LPDIRECT3DRMDEVICE3
*
device
)
static
HRESULT
WINAPI
IDirect3DRM3Impl_CreateDeviceFromClipper
(
IDirect3DRM3
*
iface
,
IDirectDrawClipper
*
clipper
,
GUID
*
guid
,
int
width
,
int
height
,
IDirect3DRMDevice3
**
device
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM3
(
iface
);
FIXME
(
"(%p/%p)->(%p,%s,%d,%d,%p): partial stub
\n
"
,
iface
,
This
,
clipper
,
debugstr_guid
(
GUID
),
FIXME
(
"(%p/%p)->(%p,%s,%d,%d,%p): partial stub
\n
"
,
iface
,
This
,
clipper
,
debugstr_guid
(
guid
),
width
,
height
,
device
);
return
Direct3DRMDevice_create
(
&
IID_IDirect3DRMDevice3
,
(
IUnknown
**
)
device
);
...
...
dlls/d3drm/device.c
View file @
0a7e2acc
...
...
@@ -223,9 +223,8 @@ static HRESULT WINAPI IDirect3DRMDevice2Impl_InitFromD3D(IDirect3DRMDevice2* ifa
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMDevice2Impl_InitFromClipper
(
IDirect3DRMDevice2
*
iface
,
LPDIRECTDRAWCLIPPER
lpDDClipper
,
LPGUID
lpGUID
,
int
width
,
int
height
)
static
HRESULT
WINAPI
IDirect3DRMDevice2Impl_InitFromClipper
(
IDirect3DRMDevice2
*
iface
,
IDirectDrawClipper
*
lpDDClipper
,
GUID
*
lpGUID
,
int
width
,
int
height
)
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice2
(
iface
);
...
...
@@ -652,9 +651,8 @@ static HRESULT WINAPI IDirect3DRMDevice3Impl_InitFromD3D(IDirect3DRMDevice3* ifa
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMDevice3Impl_InitFromClipper
(
IDirect3DRMDevice3
*
iface
,
LPDIRECTDRAWCLIPPER
lpDDClipper
,
LPGUID
lpGUID
,
int
width
,
int
height
)
static
HRESULT
WINAPI
IDirect3DRMDevice3Impl_InitFromClipper
(
IDirect3DRMDevice3
*
iface
,
IDirectDrawClipper
*
lpDDClipper
,
GUID
*
lpGUID
,
int
width
,
int
height
)
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice3
(
iface
);
...
...
dlls/d3drm/tests/d3drm.c
View file @
0a7e2acc
...
...
@@ -944,9 +944,9 @@ static void test_Frame(void)
static
void
test_Viewport
(
void
)
{
IDirectDrawClipper
*
pClipper
;
HRESULT
hr
;
LPDIRECT3DRM
pD3DRM
;
LPDIRECTDRAWCLIPPER
pClipper
;
LPDIRECT3DRMDEVICE
pDevice
;
LPDIRECT3DRMFRAME
pFrame
;
LPDIRECT3DRMVIEWPORT
pViewport
;
...
...
@@ -1177,9 +1177,9 @@ static void test_Texture(void)
static
void
test_Device
(
void
)
{
IDirectDrawClipper
*
pClipper
;
HRESULT
hr
;
LPDIRECT3DRM
pD3DRM
;
LPDIRECTDRAWCLIPPER
pClipper
;
LPDIRECT3DRMDEVICE
pDevice
;
LPDIRECT3DRMWINDEVICE
pWinDevice
;
GUID
driver
;
...
...
include/d3drm.h
View file @
0a7e2acc
...
...
@@ -72,8 +72,8 @@ DECLARE_INTERFACE_(IDirect3DRM,IUnknown)
STDMETHOD
(
CreateDeviceFromSurface
)(
THIS_
GUID
*
guid
,
IDirectDraw
*
ddraw
,
IDirectDrawSurface
*
surface
,
IDirect3DRMDevice
**
device
)
PURE
;
STDMETHOD
(
CreateDeviceFromD3D
)(
THIS_
LPDIRECT3D
pD3D
,
LPDIRECT3DDEVICE
pD3DDev
,
LPDIRECT3DRMDEVICE
*
)
PURE
;
STDMETHOD
(
CreateDeviceFromClipper
)(
THIS_
LPDIRECTDRAWCLIPPER
pDDClipper
,
LPGUID
pGUID
,
int
width
,
int
height
,
LPDIRECT3DRMDEVICE
*
)
PURE
;
STDMETHOD
(
CreateDeviceFromClipper
)(
THIS_
IDirectDrawClipper
*
clipper
,
GUID
*
guid
,
int
width
,
int
height
,
IDirect3DRMDevice
**
device
)
PURE
;
STDMETHOD
(
CreateTextureFromSurface
)(
THIS_
IDirectDrawSurface
*
surface
,
IDirect3DRMTexture
**
texture
)
PURE
;
STDMETHOD
(
CreateShadow
)(
THIS_
LPDIRECT3DRMVISUAL
,
LPDIRECT3DRMLIGHT
,
D3DVALUE
px
,
D3DVALUE
py
,
D3DVALUE
pz
,
...
...
@@ -207,8 +207,8 @@ DECLARE_INTERFACE_(IDirect3DRM2,IUnknown)
STDMETHOD
(
CreateDeviceFromSurface
)(
THIS_
GUID
*
guid
,
IDirectDraw
*
ddraw
,
IDirectDrawSurface
*
surface
,
IDirect3DRMDevice2
**
device
)
PURE
;
STDMETHOD
(
CreateDeviceFromD3D
)(
THIS_
LPDIRECT3D2
pD3D
,
LPDIRECT3DDEVICE2
pD3DDev
,
LPDIRECT3DRMDEVICE2
*
)
PURE
;
STDMETHOD
(
CreateDeviceFromClipper
)(
THIS_
LPDIRECTDRAWCLIPPER
pDDClipper
,
LPGUID
pGUID
,
int
width
,
int
height
,
LPDIRECT3DRMDEVICE2
*
)
PURE
;
STDMETHOD
(
CreateDeviceFromClipper
)(
THIS_
IDirectDrawClipper
*
clipper
,
GUID
*
guid
,
int
width
,
int
height
,
IDirect3DRMDevice2
**
device
)
PURE
;
STDMETHOD
(
CreateTextureFromSurface
)(
THIS_
IDirectDrawSurface
*
surface
,
IDirect3DRMTexture2
**
texture
)
PURE
;
STDMETHOD
(
CreateShadow
)(
THIS_
LPDIRECT3DRMVISUAL
,
LPDIRECT3DRMLIGHT
,
D3DVALUE
px
,
D3DVALUE
py
,
D3DVALUE
pz
,
...
...
@@ -345,8 +345,8 @@ DECLARE_INTERFACE_(IDirect3DRM3,IUnknown)
STDMETHOD
(
CreateDeviceFromSurface
)(
THIS_
GUID
*
guid
,
IDirectDraw
*
ddraw
,
IDirectDrawSurface
*
surface
,
IDirect3DRMDevice3
**
device
)
PURE
;
STDMETHOD
(
CreateDeviceFromD3D
)(
THIS_
LPDIRECT3D2
pD3D
,
LPDIRECT3DDEVICE2
pD3DDev
,
LPDIRECT3DRMDEVICE3
*
)
PURE
;
STDMETHOD
(
CreateDeviceFromClipper
)(
THIS_
LPDIRECTDRAWCLIPPER
pDDClipper
,
LPGUID
pGUID
,
int
width
,
int
height
,
LPDIRECT3DRMDEVICE3
*
)
PURE
;
STDMETHOD
(
CreateDeviceFromClipper
)(
THIS_
IDirectDrawClipper
*
clipper
,
GUID
*
guid
,
int
width
,
int
height
,
IDirect3DRMDevice3
**
device
)
PURE
;
STDMETHOD
(
CreateTextureFromSurface
)(
THIS_
IDirectDrawSurface
*
surface
,
IDirect3DRMTexture3
**
texture
)
PURE
;
STDMETHOD
(
CreateShadow
)(
THIS_
LPUNKNOWN
,
LPDIRECT3DRMLIGHT
,
D3DVALUE
px
,
D3DVALUE
py
,
D3DVALUE
pz
,
...
...
include/d3drmobj.h
View file @
0a7e2acc
...
...
@@ -377,7 +377,7 @@ DECLARE_INTERFACE_(IDirect3DRMDevice,IUnknown)
/*** IDirect3DRMDevice methods ***/
STDMETHOD
(
Init
)(
THIS_
ULONG
width
,
ULONG
height
)
PURE
;
STDMETHOD
(
InitFromD3D
)(
THIS_
LPDIRECT3D
pD3D
,
LPDIRECT3DDEVICE
pD3DDev
)
PURE
;
STDMETHOD
(
InitFromClipper
)(
THIS_
LPDIRECTDRAWCLIPPER
pDDClipper
,
LPGUID
pGUID
,
int
width
,
int
height
)
PURE
;
STDMETHOD
(
InitFromClipper
)(
THIS_
IDirectDrawClipper
*
clipper
,
GUID
*
guid
,
int
width
,
int
height
)
PURE
;
STDMETHOD
(
Update
)(
THIS
)
PURE
;
STDMETHOD
(
AddUpdateCallback
)(
THIS_
D3DRMUPDATECALLBACK
,
LPVOID
arg
)
PURE
;
STDMETHOD
(
DeleteUpdateCallback
)(
THIS_
D3DRMUPDATECALLBACK
,
LPVOID
arg
)
PURE
;
...
...
@@ -504,7 +504,7 @@ DECLARE_INTERFACE_(IDirect3DRMDevice2,IDirect3DRMDevice)
/*** IDirect3DRMDevice methods ***/
STDMETHOD
(
Init
)(
THIS_
ULONG
width
,
ULONG
height
)
PURE
;
STDMETHOD
(
InitFromD3D
)(
THIS_
LPDIRECT3D
pD3D
,
LPDIRECT3DDEVICE
pD3DDev
)
PURE
;
STDMETHOD
(
InitFromClipper
)(
THIS_
LPDIRECTDRAWCLIPPER
pDDClipper
,
LPGUID
pGUID
,
int
width
,
int
height
)
PURE
;
STDMETHOD
(
InitFromClipper
)(
THIS_
IDirectDrawClipper
*
clipper
,
GUID
*
guid
,
int
width
,
int
height
)
PURE
;
STDMETHOD
(
Update
)(
THIS
)
PURE
;
STDMETHOD
(
AddUpdateCallback
)(
THIS_
D3DRMUPDATECALLBACK
,
LPVOID
arg
)
PURE
;
STDMETHOD
(
DeleteUpdateCallback
)(
THIS_
D3DRMUPDATECALLBACK
,
LPVOID
arg
)
PURE
;
...
...
@@ -649,7 +649,7 @@ DECLARE_INTERFACE_(IDirect3DRMDevice3,IDirect3DRMObject)
/*** IDirect3DRMDevice methods ***/
STDMETHOD
(
Init
)(
THIS_
ULONG
width
,
ULONG
height
)
PURE
;
STDMETHOD
(
InitFromD3D
)(
THIS_
LPDIRECT3D
pD3D
,
LPDIRECT3DDEVICE
pD3DDev
)
PURE
;
STDMETHOD
(
InitFromClipper
)(
THIS_
LPDIRECTDRAWCLIPPER
pDDClipper
,
LPGUID
pGUID
,
int
width
,
int
height
)
PURE
;
STDMETHOD
(
InitFromClipper
)(
THIS_
IDirectDrawClipper
*
clipper
,
GUID
*
guid
,
int
width
,
int
height
)
PURE
;
STDMETHOD
(
Update
)(
THIS
)
PURE
;
STDMETHOD
(
AddUpdateCallback
)(
THIS_
D3DRMUPDATECALLBACK
,
LPVOID
arg
)
PURE
;
STDMETHOD
(
DeleteUpdateCallback
)(
THIS_
D3DRMUPDATECALLBACK
,
LPVOID
arg
)
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