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
a34074c5
Commit
a34074c5
authored
Jun 10, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx8: Make the virtual table functions static where possible.
parent
c3bd09e5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
28 deletions
+7
-28
d3dx8core_private.h
dlls/d3dx8/d3dx8core_private.h
+0
-22
d3dxbuffer.c
dlls/d3dx8/d3dxbuffer.c
+7
-6
No files found.
dlls/d3dx8/d3dx8core_private.h
View file @
a34074c5
...
...
@@ -54,25 +54,11 @@ struct ID3DXBufferImpl
DWORD
bufferSize
;
};
/* IUnknown: */
extern
HRESULT
WINAPI
ID3DXBufferImpl_QueryInterface
(
LPD3DXBUFFER
iface
,
REFIID
refiid
,
LPVOID
*
obj
);
extern
ULONG
WINAPI
ID3DXBufferImpl_AddRef
(
LPD3DXBUFFER
iface
);
extern
ULONG
WINAPI
ID3DXBufferImpl_Release
(
LPD3DXBUFFER
iface
);
/* ID3DXBuffer: */
extern
LPVOID
WINAPI
ID3DXBufferImpl_GetBufferPointer
(
LPD3DXBUFFER
iface
);
extern
DWORD
WINAPI
ID3DXBufferImpl_GetBufferSize
(
LPD3DXBUFFER
iface
);
/* --------- */
/* ID3DXFont */
/* --------- */
/*****************************************************************************
* Predeclare the interface implementation structures
*/
extern
const
ID3DXFontVtbl
D3DXFont_Vtbl
;
/*****************************************************************************
* ID3DXFontImpl implementation structure
*/
struct
ID3DXFontImpl
...
...
@@ -84,12 +70,4 @@ struct ID3DXFontImpl
/* ID3DXFont fields */
};
/* IUnknown: */
extern
HRESULT
WINAPI
ID3DXFontImpl_QueryInterface
(
LPD3DXFONT
iface
,
REFIID
refiid
,
LPVOID
*
obj
);
extern
ULONG
WINAPI
ID3DXFontImpl_AddRef
(
LPD3DXFONT
iface
);
extern
ULONG
WINAPI
ID3DXFontImpl_Release
(
LPD3DXFONT
iface
);
/* ID3DXFont: */
extern
INT
WINAPI
ID3DXFontImpl_DrawTextA
(
LPCSTR
pString
,
INT
Count
,
LPRECT
pRect
,
DWORD
Format
,
D3DCOLOR
Color
);
#endif
/*__WINE_D3DX8CORE_PRIVATE_H */
dlls/d3dx8/d3dxbuffer.c
View file @
a34074c5
...
...
@@ -23,6 +23,7 @@
#include <stdarg.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
...
...
@@ -35,12 +36,12 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d
);
/* ID3DXBuffer IUnknown parts follow: */
HRESULT
WINAPI
ID3DXBufferImpl_QueryInterface
(
LPD3DXBUFFER
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
ID3DXBufferImpl_QueryInterface
(
LPD3DXBUFFER
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
ID3DXBufferImpl
*
This
=
(
ID3DXBufferImpl
*
)
iface
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_ID3DXBuffer
))
{
I
D3DXBufferImpl
_AddRef
(
iface
);
I
Unknown
_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D_OK
;
}
...
...
@@ -49,7 +50,7 @@ HRESULT WINAPI ID3DXBufferImpl_QueryInterface(LPD3DXBUFFER iface, REFIID riid, L
return
E_NOINTERFACE
;
}
ULONG
WINAPI
ID3DXBufferImpl_AddRef
(
LPD3DXBUFFER
iface
)
{
static
ULONG
WINAPI
ID3DXBufferImpl_AddRef
(
LPD3DXBUFFER
iface
)
{
ID3DXBufferImpl
*
This
=
(
ID3DXBufferImpl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -58,7 +59,7 @@ ULONG WINAPI ID3DXBufferImpl_AddRef(LPD3DXBUFFER iface) {
return
ref
;
}
ULONG
WINAPI
ID3DXBufferImpl_Release
(
LPD3DXBUFFER
iface
)
{
static
ULONG
WINAPI
ID3DXBufferImpl_Release
(
LPD3DXBUFFER
iface
)
{
ID3DXBufferImpl
*
This
=
(
ID3DXBufferImpl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -72,12 +73,12 @@ ULONG WINAPI ID3DXBufferImpl_Release(LPD3DXBUFFER iface) {
}
/* ID3DXBuffer Interface follow: */
LPVOID
WINAPI
ID3DXBufferImpl_GetBufferPointer
(
LPD3DXBUFFER
iface
)
{
static
LPVOID
WINAPI
ID3DXBufferImpl_GetBufferPointer
(
LPD3DXBUFFER
iface
)
{
ID3DXBufferImpl
*
This
=
(
ID3DXBufferImpl
*
)
iface
;
return
This
->
buffer
;
}
DWORD
WINAPI
ID3DXBufferImpl_GetBufferSize
(
LPD3DXBUFFER
iface
)
{
static
DWORD
WINAPI
ID3DXBufferImpl_GetBufferSize
(
LPD3DXBUFFER
iface
)
{
ID3DXBufferImpl
*
This
=
(
ID3DXBufferImpl
*
)
iface
;
return
This
->
bufferSize
;
}
...
...
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