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
97f9b02a
Commit
97f9b02a
authored
Jan 19, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: COM cleanup for the IDirect3D3 iface.
parent
67a55fee
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
ddraw.c
dlls/ddraw/ddraw.c
+0
-0
ddraw_private.h
dlls/ddraw/ddraw_private.h
+1
-6
device.c
dlls/ddraw/device.c
+3
-3
No files found.
dlls/ddraw/ddraw.c
View file @
97f9b02a
This diff is collapsed.
Click to expand it.
dlls/ddraw/ddraw_private.h
View file @
97f9b02a
...
...
@@ -102,7 +102,7 @@ struct IDirectDrawImpl
const
IDirectDraw2Vtbl
*
IDirectDraw2_vtbl
;
const
IDirectDrawVtbl
*
IDirectDraw_vtbl
;
const
IDirect3D7Vtbl
*
IDirect3D7_vtbl
;
const
IDirect3D3Vtbl
*
IDirect3D3_vtbl
;
IDirect3D3
IDirect3D3_iface
;
IDirect3D2
IDirect3D2_iface
;
IDirect3D
IDirect3D_iface
;
const
IWineD3DDeviceParentVtbl
*
device_parent_vtbl
;
...
...
@@ -184,11 +184,6 @@ HRESULT WINAPI ddraw_recreate_surfaces_cb(IDirectDrawSurface7 *surf,
DDSURFACEDESC2
*
desc
,
void
*
Context
)
DECLSPEC_HIDDEN
;
IWineD3DVertexDeclaration
*
ddraw_find_decl
(
IDirectDrawImpl
*
This
,
DWORD
fvf
)
DECLSPEC_HIDDEN
;
static
inline
IDirectDrawImpl
*
ddraw_from_d3d3
(
IDirect3D3
*
iface
)
{
return
(
IDirectDrawImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
IDirectDrawImpl
,
IDirect3D3_vtbl
));
}
static
inline
IDirectDrawImpl
*
ddraw_from_d3d7
(
IDirect3D7
*
iface
)
{
return
(
IDirectDrawImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
IDirectDrawImpl
,
IDirect3D7_vtbl
));
...
...
dlls/ddraw/device.c
View file @
97f9b02a
...
...
@@ -151,7 +151,7 @@ IDirect3DDeviceImpl_7_QueryInterface(IDirect3DDevice7 *iface,
}
else
if
(
IsEqualGUID
(
&
IID_IDirect3D3
,
refiid
)
)
{
*
obj
=
&
This
->
ddraw
->
IDirect3D3_
vtbl
;
*
obj
=
&
This
->
ddraw
->
IDirect3D3_
iface
;
TRACE
(
"(%p) Returning IDirect3D3 interface at %p
\n
"
,
This
,
*
obj
);
}
else
if
(
IsEqualGUID
(
&
IID_IDirect3D7
,
refiid
)
)
...
...
@@ -1737,8 +1737,8 @@ static HRESULT WINAPI IDirect3DDeviceImpl_3_GetDirect3D(IDirect3DDevice3 *iface,
if
(
!
Direct3D3
)
return
DDERR_INVALIDPARAMS
;
IDirect3D3_AddRef
(
(
IDirect3D3
*
)
&
This
->
ddraw
->
IDirect3D3_vtbl
);
*
Direct3D3
=
(
IDirect3D3
*
)
&
This
->
ddraw
->
IDirect3D3_vtbl
;
IDirect3D3_AddRef
(
&
This
->
ddraw
->
IDirect3D3_iface
);
*
Direct3D3
=
&
This
->
ddraw
->
IDirect3D3_iface
;
TRACE
(
" returning interface %p
\n
"
,
*
Direct3D3
);
return
D3D_OK
;
}
...
...
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