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
3993eef0
Commit
3993eef0
authored
Jun 16, 2011
by
Charles Welton
Committed by
Alexandre Julliard
Jun 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implemented GetDevice method.
parent
98580b5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
line.c
dlls/d3dx9_36/line.c
+14
-2
No files found.
dlls/d3dx9_36/line.c
View file @
3993eef0
...
@@ -27,6 +27,8 @@ static const struct ID3DXLineVtbl ID3DXLine_Vtbl;
...
@@ -27,6 +27,8 @@ static const struct ID3DXLineVtbl ID3DXLine_Vtbl;
typedef
struct
ID3DXLineImpl
{
typedef
struct
ID3DXLineImpl
{
ID3DXLine
ID3DXLine_iface
;
ID3DXLine
ID3DXLine_iface
;
LONG
ref
;
LONG
ref
;
IDirect3DDevice9
*
device
;
}
ID3DXLineImpl
;
}
ID3DXLineImpl
;
static
inline
ID3DXLineImpl
*
impl_from_ID3DXLine
(
ID3DXLine
*
iface
)
static
inline
ID3DXLineImpl
*
impl_from_ID3DXLine
(
ID3DXLine
*
iface
)
...
@@ -71,7 +73,10 @@ static ULONG WINAPI ID3DXLineImpl_Release(ID3DXLine* iface)
...
@@ -71,7 +73,10 @@ static ULONG WINAPI ID3DXLineImpl_Release(ID3DXLine* iface)
TRACE
(
"(%p)->(): Release from %u
\n
"
,
This
,
ref
+
1
);
TRACE
(
"(%p)->(): Release from %u
\n
"
,
This
,
ref
+
1
);
if
(
!
ref
)
if
(
!
ref
)
{
IDirect3DDevice9_Release
(
This
->
device
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
return
ref
;
}
}
...
@@ -81,9 +86,14 @@ static HRESULT WINAPI ID3DXLineImpl_GetDevice(ID3DXLine* iface, LPDIRECT3DDEVICE
...
@@ -81,9 +86,14 @@ static HRESULT WINAPI ID3DXLineImpl_GetDevice(ID3DXLine* iface, LPDIRECT3DDEVICE
{
{
ID3DXLineImpl
*
This
=
impl_from_ID3DXLine
(
iface
);
ID3DXLineImpl
*
This
=
impl_from_ID3DXLine
(
iface
);
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
device
);
TRACE
(
"(%p)->(%p): relay
\n
"
,
This
,
device
);
return
E_NOTIMPL
;
if
(
device
==
NULL
)
return
D3DERR_INVALIDCALL
;
*
device
=
This
->
device
;
IDirect3DDevice9_AddRef
(
This
->
device
);
return
D3D_OK
;
}
}
static
HRESULT
WINAPI
ID3DXLineImpl_Begin
(
ID3DXLine
*
iface
)
static
HRESULT
WINAPI
ID3DXLineImpl_Begin
(
ID3DXLine
*
iface
)
...
@@ -274,6 +284,8 @@ HRESULT WINAPI D3DXCreateLine(LPDIRECT3DDEVICE9 device, LPD3DXLINE* line)
...
@@ -274,6 +284,8 @@ HRESULT WINAPI D3DXCreateLine(LPDIRECT3DDEVICE9 device, LPD3DXLINE* line)
object
->
ID3DXLine_iface
.
lpVtbl
=
&
ID3DXLine_Vtbl
;
object
->
ID3DXLine_iface
.
lpVtbl
=
&
ID3DXLine_Vtbl
;
object
->
ref
=
1
;
object
->
ref
=
1
;
object
->
device
=
device
;
IDirect3DDevice9_AddRef
(
device
);
*
line
=
&
object
->
ID3DXLine_iface
;
*
line
=
&
object
->
ID3DXLine_iface
;
...
...
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