Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f78cf542
Commit
f78cf542
authored
Jan 02, 2003
by
Christian Costa
Committed by
Alexandre Julliard
Jan 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix IDirect3DVertexBuffer interface.
Implements GetVertexBufferDesc. Remove some useless FIXME.
parent
d70a2c03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
d3dvertexbuffer.c
dlls/ddraw/d3dvertexbuffer.c
+14
-10
d3dviewport.c
dlls/ddraw/d3dviewport.c
+2
-2
No files found.
dlls/ddraw/d3dvertexbuffer.c
View file @
f78cf542
...
...
@@ -109,7 +109,8 @@ HRESULT WINAPI
Main_IDirect3DVertexBufferImpl_7_1T_Unlock
(
LPDIRECT3DVERTEXBUFFER7
iface
)
{
ICOM_THIS_FROM
(
IDirect3DVertexBufferImpl
,
IDirect3DVertexBuffer7
,
iface
);
FIXME
(
"(%p/%p)->(): stub!
\n
"
,
This
,
iface
);
TRACE
(
"(%p/%p)->()
\n
"
,
This
,
iface
);
/* Nothing to do */
return
DD_OK
;
}
...
...
@@ -124,7 +125,7 @@ Main_IDirect3DVertexBufferImpl_7_ProcessVertices(LPDIRECT3DVERTEXBUFFER7 iface,
DWORD
dwFlags
)
{
ICOM_THIS_FROM
(
IDirect3DVertexBufferImpl
,
IDirect3DVertexBuffer7
,
iface
);
FIXME
(
"(%p/%p)->(%08lx,%08lx,%08lx,%p,%08lx,%p,%08lx): stub!
\n
"
,
This
,
iface
,
dwVertexOp
,
dwDestIndex
,
dwCount
,
lpSrcBuffer
,
dwSrcIndex
,
lpD3DDevice
,
dwFlags
);
FIXME
(
"(%p/%p)->(%08lx,%08lx,%08lx,%p,%08lx,%p,%08lx): stub!
\n
"
,
This
,
iface
,
dwVertexOp
,
dwDestIndex
,
dwCount
,
lpSrcBuffer
,
dwSrcIndex
,
lpD3DDevice
,
dwFlags
);
return
DD_OK
;
}
...
...
@@ -132,8 +133,11 @@ HRESULT WINAPI
Main_IDirect3DVertexBufferImpl_7_1T_GetVertexBufferDesc
(
LPDIRECT3DVERTEXBUFFER7
iface
,
LPD3DVERTEXBUFFERDESC
lpD3DVertexBufferDesc
)
{
DWORD
size
;
ICOM_THIS_FROM
(
IDirect3DVertexBufferImpl
,
IDirect3DVertexBuffer7
,
iface
);
FIXME
(
"(%p/%p)->(%p): stub!
\n
"
,
This
,
iface
,
lpD3DVertexBufferDesc
);
TRACE
(
"(%p/%p)->(%p)
\n
"
,
This
,
iface
,
lpD3DVertexBufferDesc
);
size
=
(
lpD3DVertexBufferDesc
->
dwSize
<
This
->
desc
.
dwSize
)
?
lpD3DVertexBufferDesc
->
dwSize
:
This
->
desc
.
dwSize
;
memcpy
(
lpD3DVertexBufferDesc
,
&
This
->
desc
,
size
);
return
DD_OK
;
}
...
...
@@ -258,7 +262,7 @@ ICOM_VTABLE(IDirect3DVertexBuffer7) VTABLE_IDirect3DVertexBuffer7 =
XCAST
(
ProcessVertices
)
Main_IDirect3DVertexBufferImpl_7_ProcessVertices
,
XCAST
(
GetVertexBufferDesc
)
Main_IDirect3DVertexBufferImpl_7_1T_GetVertexBufferDesc
,
XCAST
(
Optimize
)
Main_IDirect3DVertexBufferImpl_7_Optimize
,
XCAST
(
ProcessVerticesStrided
)
Main_IDirect3DVertexBufferImpl_7_ProcessVerticesStrided
,
XCAST
(
ProcessVerticesStrided
)
Main_IDirect3DVertexBufferImpl_7_ProcessVerticesStrided
};
#if !defined(__STRICT_ANSI__) && defined(__GNUC__)
...
...
@@ -275,14 +279,14 @@ ICOM_VTABLE(IDirect3DVertexBuffer7) VTABLE_IDirect3DVertexBuffer7 =
ICOM_VTABLE
(
IDirect3DVertexBuffer
)
VTABLE_IDirect3DVertexBuffer
=
{
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
XCAST
(
QueryInterface
)
Thunk_IDirect3DVertexBufferImpl_1_
GetVertexBufferDesc
,
XCAST
(
AddRef
)
Thunk_IDirect3DVertexBufferImpl_1_
GetVertexBufferDesc
,
XCAST
(
Release
)
Thunk_IDirect3DVertexBufferImpl_1_
GetVertexBufferDesc
,
XCAST
(
Lock
)
Thunk_IDirect3DVertexBufferImpl_1_
GetVertexBufferDesc
,
XCAST
(
Unlock
)
Thunk_IDirect3DVertexBufferImpl_1_
GetVertexBufferDesc
,
XCAST
(
QueryInterface
)
Thunk_IDirect3DVertexBufferImpl_1_
QueryInterface
,
XCAST
(
AddRef
)
Thunk_IDirect3DVertexBufferImpl_1_
AddRef
,
XCAST
(
Release
)
Thunk_IDirect3DVertexBufferImpl_1_
Release
,
XCAST
(
Lock
)
Thunk_IDirect3DVertexBufferImpl_1_
Lock
,
XCAST
(
Unlock
)
Thunk_IDirect3DVertexBufferImpl_1_
Unlock
,
XCAST
(
ProcessVertices
)
Main_IDirect3DVertexBufferImpl_1_ProcessVertices
,
XCAST
(
GetVertexBufferDesc
)
Thunk_IDirect3DVertexBufferImpl_1_GetVertexBufferDesc
,
XCAST
(
Optimize
)
Main_IDirect3DVertexBufferImpl_1_Optimize
,
XCAST
(
Optimize
)
Main_IDirect3DVertexBufferImpl_1_Optimize
};
#if !defined(__STRICT_ANSI__) && defined(__GNUC__)
...
...
dlls/ddraw/d3dviewport.c
View file @
f78cf542
...
...
@@ -98,7 +98,7 @@ ULONG WINAPI
Main_IDirect3DViewportImpl_3_2_1_AddRef
(
LPDIRECT3DVIEWPORT3
iface
)
{
ICOM_THIS_FROM
(
IDirect3DViewportImpl
,
IDirect3DViewport3
,
iface
);
FIXM
E
(
"(%p/%p)->() incrementing from %lu.
\n
"
,
This
,
iface
,
This
->
ref
);
TRAC
E
(
"(%p/%p)->() incrementing from %lu.
\n
"
,
This
,
iface
,
This
->
ref
);
return
++
(
This
->
ref
);
}
...
...
@@ -106,7 +106,7 @@ ULONG WINAPI
Main_IDirect3DViewportImpl_3_2_1_Release
(
LPDIRECT3DVIEWPORT3
iface
)
{
ICOM_THIS_FROM
(
IDirect3DViewportImpl
,
IDirect3DViewport3
,
iface
);
FIXM
E
(
"(%p/%p)->() decrementing from %lu.
\n
"
,
This
,
iface
,
This
->
ref
);
TRAC
E
(
"(%p/%p)->() decrementing from %lu.
\n
"
,
This
,
iface
,
This
->
ref
);
if
(
!--
(
This
->
ref
))
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
0
;
...
...
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