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
759fd517
Commit
759fd517
authored
Aug 18, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Add a separate function for parent initialization.
parent
921bd1bf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
ddraw.c
dlls/ddraw/ddraw.c
+3
-4
ddraw_private.h
dlls/ddraw/ddraw_private.h
+1
-1
parent.c
dlls/ddraw/parent.c
+7
-1
No files found.
dlls/ddraw/ddraw.c
View file @
759fd517
...
...
@@ -4701,8 +4701,8 @@ static HRESULT WINAPI d3d7_CreateDevice(IDirect3D7 *iface, REFCLSID riid,
LeaveCriticalSection
(
&
ddraw_cs
);
return
DDERR_OUTOFMEMORY
;
}
index_buffer_parent
->
lpVtbl
=
&
IParent_Vtbl
;
index_buffer_parent
->
ref
=
1
;
ddraw_parent_init
(
index_buffer_parent
)
;
/* Create an Index Buffer. WineD3D needs one for Drawing indexed primitives
* Create a (hopefully) long enough buffer, and copy the indices into it
...
...
@@ -5928,8 +5928,7 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSwapChain(IWineD3DDevicePar
return
DDERR_OUTOFVIDEOMEMORY
;
}
object
->
lpVtbl
=
&
IParent_Vtbl
;
object
->
ref
=
1
;
ddraw_parent_init
(
object
);
hr
=
IWineD3DDevice_CreateSwapChain
(
This
->
wineD3DDevice
,
present_parameters
,
swapchain
,
(
IUnknown
*
)
object
,
This
->
ImplType
);
...
...
dlls/ddraw/ddraw_private.h
View file @
759fd517
...
...
@@ -315,7 +315,7 @@ struct IParentImpl
};
extern
const
IParentVtbl
IParent_Vtbl
DECLSPEC_HIDDEN
;
void
ddraw_parent_init
(
IParentImpl
*
parent
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
* IDirect3DDevice implementation
...
...
dlls/ddraw/parent.c
View file @
759fd517
...
...
@@ -121,9 +121,15 @@ static ULONG WINAPI IParentImpl_Release(IParent *iface)
/*****************************************************************************
* The VTable
*****************************************************************************/
const
IParentVtbl
IParent_V
tbl
=
static
const
struct
IParentVtbl
ddraw_parent_v
tbl
=
{
IParentImpl_QueryInterface
,
IParentImpl_AddRef
,
IParentImpl_Release
,
};
void
ddraw_parent_init
(
IParentImpl
*
parent
)
{
parent
->
lpVtbl
=
&
ddraw_parent_vtbl
;
parent
->
ref
=
1
;
}
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