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
c6bd4424
Commit
c6bd4424
authored
Jan 17, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Jan 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Reorder viewport creation function to avoid forward declarations.
parent
d05f3e06
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
23 deletions
+21
-23
viewport.c
dlls/d3drm/viewport.c
+21
-23
No files found.
dlls/d3drm/viewport.c
View file @
c6bd4424
...
...
@@ -37,34 +37,11 @@ typedef struct {
LONG
ref
;
}
IDirect3DRMViewportImpl
;
static
const
struct
IDirect3DRMViewportVtbl
Direct3DRMViewport_Vtbl
;
static
inline
IDirect3DRMViewportImpl
*
impl_from_IDirect3DRMViewport
(
IDirect3DRMViewport
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDirect3DRMViewportImpl
,
IDirect3DRMViewport_iface
);
}
HRESULT
Direct3DRMViewport_create
(
IUnknown
**
ppObj
)
{
IDirect3DRMViewportImpl
*
object
;
TRACE
(
"(%p)
\n
"
,
ppObj
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMViewportImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRMViewport_iface
.
lpVtbl
=
&
Direct3DRMViewport_Vtbl
;
object
->
ref
=
1
;
*
ppObj
=
(
IUnknown
*
)
object
;
return
S_OK
;
}
/*** IUnknown methods ***/
static
HRESULT
WINAPI
IDirect3DRMViewportImpl_QueryInterface
(
IDirect3DRMViewport
*
iface
,
REFIID
riid
,
void
**
object
)
...
...
@@ -506,3 +483,24 @@ static const struct IDirect3DRMViewportVtbl Direct3DRMViewport_Vtbl =
IDirect3DRMViewportImpl_GetProjection
,
IDirect3DRMViewportImpl_GetDirect3DViewport
};
HRESULT
Direct3DRMViewport_create
(
IUnknown
**
ppObj
)
{
IDirect3DRMViewportImpl
*
object
;
TRACE
(
"(%p)
\n
"
,
ppObj
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMViewportImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRMViewport_iface
.
lpVtbl
=
&
Direct3DRMViewport_Vtbl
;
object
->
ref
=
1
;
*
ppObj
=
(
IUnknown
*
)
object
;
return
S_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