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
2c557b9b
Commit
2c557b9b
authored
Apr 18, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Avoid LPDIRECT3DRMDEVICE3.
parent
00393fd8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
35 deletions
+21
-35
d3drm.c
dlls/d3drm/d3drm.c
+9
-16
viewport.c
dlls/d3drm/viewport.c
+6
-13
d3drm.h
include/d3drm.h
+3
-3
d3drmobj.h
include/d3drmobj.h
+3
-3
No files found.
dlls/d3drm/d3drm.c
View file @
2c557b9b
...
...
@@ -1040,14 +1040,12 @@ static HRESULT WINAPI IDirect3DRM3Impl_CreateMaterial(IDirect3DRM3* iface, D3DVA
return
ret
;
}
static
HRESULT
WINAPI
IDirect3DRM3Impl_CreateDevice
(
IDirect3DRM3
*
iface
,
DWORD
width
,
DWORD
height
,
LPDIRECT3DRMDEVICE3
*
device
)
static
HRESULT
WINAPI
IDirect3DRM3Impl_CreateDevice
(
IDirect3DRM3
*
iface
,
DWORD
width
,
DWORD
height
,
IDirect3DRMDevice3
**
device
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM3
(
iface
);
FIXME
(
"(%p/%p)->(%d,%d,%p): partial stub
\n
"
,
iface
,
This
,
width
,
height
,
device
);
FIXME
(
"iface %p, width %u, height %u, device %p partial stub!
\n
"
,
iface
,
width
,
height
,
device
);
return
Direct3DRMDevice_create
(
&
IID_IDirect3DRMDevice3
,
(
IUnknown
**
)
device
);
return
Direct3DRMDevice_create
(
&
IID_IDirect3DRMDevice3
,
(
IUnknown
**
)
device
);
}
static
HRESULT
WINAPI
IDirect3DRM3Impl_CreateDeviceFromSurface
(
IDirect3DRM3
*
iface
,
GUID
*
pGUID
,
...
...
@@ -1106,18 +1104,13 @@ static HRESULT WINAPI IDirect3DRM3Impl_CreateTextureFromSurface(IDirect3DRM3 *if
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRM3Impl_CreateViewport
(
IDirect3DRM3
*
iface
,
LPDIRECT3DRMDEVICE3
Device
,
LPDIRECT3DRMFRAME3
frame
,
DWORD
xpos
,
DWORD
ypos
,
DWORD
width
,
DWORD
height
,
LPDIRECT3DRMVIEWPORT2
*
viewport
)
static
HRESULT
WINAPI
IDirect3DRM3Impl_CreateViewport
(
IDirect3DRM3
*
iface
,
IDirect3DRMDevice3
*
device
,
IDirect3DRMFrame3
*
camera
,
DWORD
x
,
DWORD
y
,
DWORD
width
,
DWORD
height
,
IDirect3DRMViewport2
**
viewport
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM3
(
iface
);
FIXME
(
"(%p/%p)->(%p,%p,%d,%d,%d,%d,%p): stub
\n
"
,
iface
,
This
,
Device
,
frame
,
xpos
,
ypos
,
width
,
height
,
viewport
);
FIXME
(
"iface %p, device %p, camera %p, x %u, y %u, width %u, height %u, viewport %p partial stub!
\n
"
,
iface
,
device
,
camera
,
x
,
y
,
width
,
height
,
viewport
);
return
Direct3DRMViewport_create
(
&
IID_IDirect3DRMViewport2
,
(
IUnknown
**
)
viewport
);
return
Direct3DRMViewport_create
(
&
IID_IDirect3DRMViewport2
,
(
IUnknown
**
)
viewport
);
}
static
HRESULT
WINAPI
IDirect3DRM3Impl_CreateWrap
(
IDirect3DRM3
*
iface
,
D3DRMWRAPTYPE
type
,
...
...
dlls/d3drm/viewport.c
View file @
2c557b9b
...
...
@@ -607,15 +607,11 @@ static HRESULT WINAPI IDirect3DRMViewport2Impl_GetClassName(IDirect3DRMViewport2
}
/*** IDirect3DRMViewport methods ***/
static
HRESULT
WINAPI
IDirect3DRMViewport2Impl_Init
(
IDirect3DRMViewport2
*
iface
,
LPDIRECT3DRMDEVICE3
dev
,
LPDIRECT3DRMFRAME3
camera
,
DWORD
xpos
,
DWORD
ypos
,
DWORD
width
,
DWORD
height
)
static
HRESULT
WINAPI
IDirect3DRMViewport2Impl_Init
(
IDirect3DRMViewport2
*
iface
,
IDirect3DRMDevice3
*
device
,
IDirect3DRMFrame3
*
camera
,
DWORD
x
,
DWORD
y
,
DWORD
width
,
DWORD
height
)
{
IDirect3DRMViewportImpl
*
This
=
impl_from_IDirect3DRMViewport2
(
iface
);
FIXME
(
"(%p/%p)->(%p, %p, %u, %u, %u, %u): stub
\n
"
,
iface
,
This
,
dev
,
camera
,
xpos
,
ypos
,
width
,
height
);
FIXME
(
"iface %p, device %p, camera %p, x %u, y %u, width %u, height %u stub!
\n
"
,
iface
,
device
,
camera
,
x
,
y
,
width
,
height
);
return
E_NOTIMPL
;
}
...
...
@@ -764,12 +760,9 @@ static HRESULT WINAPI IDirect3DRMViewport2Impl_GetCamera(IDirect3DRMViewport2* i
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMViewport2Impl_GetDevice
(
IDirect3DRMViewport2
*
iface
,
LPDIRECT3DRMDEVICE3
*
device
)
static
HRESULT
WINAPI
IDirect3DRMViewport2Impl_GetDevice
(
IDirect3DRMViewport2
*
iface
,
IDirect3DRMDevice3
**
device
)
{
IDirect3DRMViewportImpl
*
This
=
impl_from_IDirect3DRMViewport2
(
iface
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
device
);
FIXME
(
"iface %p, device %p stub!
\n
"
,
iface
,
device
);
return
E_NOTIMPL
;
}
...
...
include/d3drm.h
View file @
2c557b9b
...
...
@@ -343,7 +343,7 @@ DECLARE_INTERFACE_(IDirect3DRM3,IUnknown)
STDMETHOD
(
CreateLight
)(
THIS_
D3DRMLIGHTTYPE
,
D3DCOLOR
,
LPDIRECT3DRMLIGHT
*
)
PURE
;
STDMETHOD
(
CreateLightRGB
)(
THIS_
D3DRMLIGHTTYPE
,
D3DVALUE
,
D3DVALUE
,
D3DVALUE
,
LPDIRECT3DRMLIGHT
*
)
PURE
;
STDMETHOD
(
CreateMaterial
)(
THIS_
D3DVALUE
,
LPDIRECT3DRMMATERIAL2
*
)
PURE
;
STDMETHOD
(
CreateDevice
)(
THIS_
DWORD
,
DWORD
,
LPDIRECT3DRMDEVICE3
*
)
PURE
;
STDMETHOD
(
CreateDevice
)(
THIS_
DWORD
width
,
DWORD
height
,
IDirect3DRMDevice3
**
device
)
PURE
;
STDMETHOD
(
CreateDeviceFromSurface
)(
THIS_
GUID
*
guid
,
IDirectDraw
*
ddraw
,
IDirectDrawSurface
*
surface
,
IDirect3DRMDevice3
**
device
)
PURE
;
STDMETHOD
(
CreateDeviceFromD3D
)(
THIS_
IDirect3D2
*
d3d
,
IDirect3DDevice2
*
d3d_device
,
...
...
@@ -354,8 +354,8 @@ DECLARE_INTERFACE_(IDirect3DRM3,IUnknown)
IDirect3DRMTexture3
**
texture
)
PURE
;
STDMETHOD
(
CreateShadow
)(
THIS_
LPUNKNOWN
,
LPDIRECT3DRMLIGHT
,
D3DVALUE
px
,
D3DVALUE
py
,
D3DVALUE
pz
,
D3DVALUE
nx
,
D3DVALUE
ny
,
D3DVALUE
nz
,
LPDIRECT3DRMSHADOW2
*
)
PURE
;
STDMETHOD
(
CreateViewport
)(
THIS_
LPDIRECT3DRMDEVICE3
,
LPDIRECT3DRMFRAME3
,
DWORD
,
DWORD
,
DWORD
,
DWORD
,
LPDIRECT3DRMVIEWPORT2
*
)
PURE
;
STDMETHOD
(
CreateViewport
)(
THIS_
IDirect3DRMDevice3
*
device
,
IDirect3DRMFrame3
*
camera
,
DWORD
x
,
DWORD
y
,
DWORD
width
,
DWORD
height
,
IDirect3DRMViewport2
**
viewport
)
PURE
;
STDMETHOD
(
CreateWrap
)(
THIS_
D3DRMWRAPTYPE
,
LPDIRECT3DRMFRAME3
,
D3DVALUE
ox
,
D3DVALUE
oy
,
D3DVALUE
oz
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
,
D3DVALUE
ou
,
D3DVALUE
ov
,
D3DVALUE
su
,
D3DVALUE
sv
,
LPDIRECT3DRMWRAP
*
)
PURE
;
...
...
include/d3drmobj.h
View file @
2c557b9b
...
...
@@ -948,8 +948,8 @@ DECLARE_INTERFACE_(IDirect3DRMViewport2,IDirect3DRMObject)
STDMETHOD
(
GetName
)(
THIS_
LPDWORD
lpdwSize
,
LPSTR
lpName
)
PURE
;
STDMETHOD
(
GetClassName
)(
THIS_
LPDWORD
lpdwSize
,
LPSTR
lpName
)
PURE
;
/*** IDirect3DRMViewport2 methods ***/
STDMETHOD
(
Init
)
(
THIS_
LPDIRECT3DRMDEVICE3
dev
,
LPDIRECT3DRMFRAME3
camera
,
DWORD
xpos
,
DWORD
ypos
,
DWORD
width
,
DWORD
height
)
PURE
;
STDMETHOD
(
Init
)
(
THIS_
IDirect3DRMDevice3
*
device
,
struct
IDirect3DRMFrame3
*
camera
,
DWORD
x
,
DWORD
y
,
DWORD
width
,
DWORD
height
)
PURE
;
STDMETHOD
(
Clear
)(
THIS_
DWORD
flags
)
PURE
;
STDMETHOD
(
Render
)(
THIS_
LPDIRECT3DRMFRAME3
)
PURE
;
STDMETHOD
(
SetFront
)(
THIS_
D3DVALUE
)
PURE
;
...
...
@@ -964,7 +964,7 @@ DECLARE_INTERFACE_(IDirect3DRMViewport2,IDirect3DRMObject)
STDMETHOD
(
ForceUpdate
)(
THIS_
DWORD
x1
,
DWORD
y1
,
DWORD
x2
,
DWORD
y2
)
PURE
;
STDMETHOD
(
SetPlane
)(
THIS_
D3DVALUE
left
,
D3DVALUE
right
,
D3DVALUE
bottom
,
D3DVALUE
top
)
PURE
;
STDMETHOD
(
GetCamera
)(
THIS_
LPDIRECT3DRMFRAME3
*
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
LPDIRECT3DRMDEVICE3
*
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DRMDevice3
**
device
)
PURE
;
STDMETHOD
(
GetPlane
)(
THIS_
D3DVALUE
*
left
,
D3DVALUE
*
right
,
D3DVALUE
*
bottom
,
D3DVALUE
*
top
)
PURE
;
STDMETHOD
(
Pick
)(
THIS_
LONG
x
,
LONG
y
,
LPDIRECT3DRMPICKEDARRAY
*
return_visuals
)
PURE
;
STDMETHOD_
(
BOOL
,
GetUniformScaling
)(
THIS
)
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