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
980ee365
Commit
980ee365
authored
Jan 07, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use unsigned int instead of size_t for element counts.
parent
84f8ab6b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
17 deletions
+17
-17
d3d8_private.h
dlls/d3d8/d3d8_private.h
+1
-1
device.c
dlls/d3d8/device.c
+1
-1
vertexdeclaration.c
dlls/d3d8/vertexdeclaration.c
+1
-1
d3d9_private.h
dlls/d3d9/d3d9_private.h
+1
-1
vertexdeclaration.c
dlls/d3d9/vertexdeclaration.c
+4
-4
device.c
dlls/wined3d/device.c
+4
-4
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+2
-2
wined3d_interface.h
include/wine/wined3d_interface.h
+3
-3
No files found.
dlls/d3d8/d3d8_private.h
View file @
980ee365
...
...
@@ -634,7 +634,7 @@ typedef struct IDirect3DPixelShader8Impl {
* to see how not defined it here
*/
void
load_local_constants
(
const
DWORD
*
d3d8_elements
,
IWineD3DVertexShader
*
wined3d_vertex_shader
);
size_t
convert_to_wined3d_declaration
(
const
DWORD
*
d3d8_elements
,
DWORD
*
d3d8_elements_size
,
WINED3DVERTEXELEMENT
**
wined3d_elements
);
UINT
convert_to_wined3d_declaration
(
const
DWORD
*
d3d8_elements
,
DWORD
*
d3d8_elements_size
,
WINED3DVERTEXELEMENT
**
wined3d_elements
);
/* Callbacks */
extern
HRESULT
WINAPI
D3D8CB_CreateSurface
(
IUnknown
*
device
,
IUnknown
*
pSuperior
,
UINT
Width
,
UINT
Height
,
...
...
dlls/d3d8/device.c
View file @
980ee365
...
...
@@ -1472,7 +1472,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CreateVertexDeclaration(IDirect3DDevi
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IDirect3DVertexDeclaration8Impl
*
object
;
WINED3DVERTEXELEMENT
*
wined3d_elements
;
size_t
wined3d_element_count
;
UINT
wined3d_element_count
;
HRESULT
hr
=
D3D_OK
;
TRACE
(
"(%p) : declaration %p
\n
"
,
This
,
declaration
);
...
...
dlls/d3d8/vertexdeclaration.c
View file @
980ee365
...
...
@@ -272,7 +272,7 @@ static const wined3d_usage_t wined3d_usage_lookup[] = {
};
/* TODO: find out where rhw (or positionT) is for declaration8 */
size_t
convert_to_wined3d_declaration
(
const
DWORD
*
d3d8_elements
,
DWORD
*
d3d8_elements_size
,
WINED3DVERTEXELEMENT
**
wined3d_elements
)
UINT
convert_to_wined3d_declaration
(
const
DWORD
*
d3d8_elements
,
DWORD
*
d3d8_elements_size
,
WINED3DVERTEXELEMENT
**
wined3d_elements
)
{
const
DWORD
*
token
=
d3d8_elements
;
WINED3DVERTEXELEMENT
*
element
;
...
...
dlls/d3d9/d3d9_private.h
View file @
980ee365
...
...
@@ -482,7 +482,7 @@ typedef struct IDirect3DVertexDeclaration9Impl {
LONG
ref
;
D3DVERTEXELEMENT9
*
elements
;
size_t
element_count
;
UINT
element_count
;
/* IDirect3DVertexDeclaration9 fields */
IWineD3DVertexDeclaration
*
wineD3DVertexDeclaration
;
...
...
dlls/d3d9/vertexdeclaration.c
View file @
980ee365
...
...
@@ -289,10 +289,10 @@ static const IDirect3DVertexDeclaration9Vtbl Direct3DVertexDeclaration9_Vtbl =
IDirect3DVertexDeclaration9Impl_GetDeclaration
};
static
size_t
convert_to_wined3d_declaration
(
const
D3DVERTEXELEMENT9
*
d3d9_elements
,
WINED3DVERTEXELEMENT
**
wined3d_elements
)
{
static
UINT
convert_to_wined3d_declaration
(
const
D3DVERTEXELEMENT9
*
d3d9_elements
,
WINED3DVERTEXELEMENT
**
wined3d_elements
)
{
const
D3DVERTEXELEMENT9
*
element
;
size_t
element_count
=
1
;
size_t
i
;
UINT
element_count
=
1
;
UINT
i
;
TRACE
(
"d3d9_elements %p, wined3d_elements %p
\n
"
,
d3d9_elements
,
wined3d_elements
);
...
...
@@ -323,7 +323,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexDeclaration(LPDIRECT3DDEVICE9
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
IDirect3DVertexDeclaration9Impl
*
object
=
NULL
;
WINED3DVERTEXELEMENT
*
wined3d_elements
;
size_t
element_count
;
UINT
element_count
;
HRESULT
hr
=
D3D_OK
;
TRACE
(
"(%p) : Relay
\n
"
,
iface
);
...
...
dlls/wined3d/device.c
View file @
980ee365
...
...
@@ -1700,7 +1700,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetSwapChain(IWineD3DDevice *iface, U
* Vertex Declaration
*****/
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateVertexDeclaration
(
IWineD3DDevice
*
iface
,
IWineD3DVertexDeclaration
**
ppVertexDeclaration
,
IUnknown
*
parent
,
const
WINED3DVERTEXELEMENT
*
elements
,
size_t
element_count
)
{
IUnknown
*
parent
,
const
WINED3DVERTEXELEMENT
*
elements
,
UINT
element_count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DVertexDeclarationImpl
*
object
=
NULL
;
HRESULT
hr
=
WINED3D_OK
;
...
...
@@ -1719,8 +1719,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexDeclaration(IWineD3DDevice*
return
hr
;
}
static
size_
t
ConvertFvfToDeclaration
(
IWineD3DDeviceImpl
*
This
,
/* For the GL info, which has the type table */
DWORD
fvf
,
WINED3DVERTEXELEMENT
**
ppVertexElements
)
{
static
unsigned
in
t
ConvertFvfToDeclaration
(
IWineD3DDeviceImpl
*
This
,
/* For the GL info, which has the type table */
DWORD
fvf
,
WINED3DVERTEXELEMENT
**
ppVertexElements
)
{
unsigned
int
idx
,
idx2
;
unsigned
int
offset
;
...
...
@@ -1849,7 +1849,7 @@ static size_t ConvertFvfToDeclaration(IWineD3DDeviceImpl *This, /* For the GL in
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateVertexDeclarationFromFVF
(
IWineD3DDevice
*
iface
,
IWineD3DVertexDeclaration
**
ppVertexDeclaration
,
IUnknown
*
Parent
,
DWORD
Fvf
)
{
WINED3DVERTEXELEMENT
*
elements
=
NULL
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
size_
t
size
;
unsigned
in
t
size
;
DWORD
hr
;
size
=
ConvertFvfToDeclaration
(
This
,
Fvf
,
&
elements
);
...
...
dlls/wined3d/vertexdeclaration.c
View file @
980ee365
...
...
@@ -103,7 +103,7 @@ static HRESULT WINAPI IWineD3DVertexDeclarationImpl_GetDevice(IWineD3DVertexDecl
}
static
HRESULT
WINAPI
IWineD3DVertexDeclarationImpl_GetDeclaration
(
IWineD3DVertexDeclaration
*
iface
,
WINED3DVERTEXELEMENT
*
elements
,
size_t
*
element_count
)
{
WINED3DVERTEXELEMENT
*
elements
,
UINT
*
element_count
)
{
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
HRESULT
hr
=
WINED3D_OK
;
...
...
@@ -119,7 +119,7 @@ static HRESULT WINAPI IWineD3DVertexDeclarationImpl_GetDeclaration(IWineD3DVerte
}
static
HRESULT
WINAPI
IWineD3DVertexDeclarationImpl_SetDeclaration
(
IWineD3DVertexDeclaration
*
iface
,
const
WINED3DVERTEXELEMENT
*
elements
,
size_t
element_count
)
{
const
WINED3DVERTEXELEMENT
*
elements
,
UINT
element_count
)
{
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
HRESULT
hr
=
WINED3D_OK
;
int
i
,
j
;
...
...
include/wine/wined3d_interface.h
View file @
980ee365
...
...
@@ -363,7 +363,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
STDMETHOD
(
CreateCubeTexture
)(
THIS_
UINT
EdgeLength
,
UINT
Levels
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
struct
IWineD3DCubeTexture
**
ppCubeTexture
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
,
D3DCB_CREATESURFACEFN
pFn
)
PURE
;
STDMETHOD
(
CreateQuery
)(
THIS_
WINED3DQUERYTYPE
Type
,
struct
IWineD3DQuery
**
ppQuery
,
IUnknown
*
pParent
);
STDMETHOD
(
CreateAdditionalSwapChain
)(
THIS_
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
,
struct
IWineD3DSwapChain
**
pSwapChain
,
IUnknown
*
pParent
,
D3DCB_CREATERENDERTARGETFN
pFn
,
D3DCB_CREATEDEPTHSTENCILSURFACEFN
pFn2
);
STDMETHOD
(
CreateVertexDeclaration
)(
THIS_
struct
IWineD3DVertexDeclaration
**
ppDecl
,
IUnknown
*
pParent
,
const
WINED3DVERTEXELEMENT
*
elements
,
size_t
element_count
)
PURE
;
STDMETHOD
(
CreateVertexDeclaration
)(
THIS_
struct
IWineD3DVertexDeclaration
**
ppDecl
,
IUnknown
*
pParent
,
const
WINED3DVERTEXELEMENT
*
elements
,
UINT
element_count
)
PURE
;
STDMETHOD
(
CreateVertexDeclarationFromFVF
)(
THIS_
struct
IWineD3DVertexDeclaration
**
ppDecl
,
IUnknown
*
pParent
,
DWORD
Fvf
)
PURE
;
STDMETHOD
(
CreateVertexShader
)(
THIS_
struct
IWineD3DVertexDeclaration
*
vertex_declaration
,
CONST
DWORD
*
pFunction
,
struct
IWineD3DVertexShader
**
ppShader
,
IUnknown
*
pParent
)
PURE
;
STDMETHOD
(
CreatePixelShader
)(
THIS_
CONST
DWORD
*
pFunction
,
struct
IWineD3DPixelShader
**
ppShader
,
IUnknown
*
pParent
)
PURE
;
...
...
@@ -1278,8 +1278,8 @@ DECLARE_INTERFACE_(IWineD3DVertexDeclaration,IWineD3DBase)
STDMETHOD
(
GetParent
)(
THIS_
IUnknown
**
pParent
)
PURE
;
/*** IWineD3DVertexDeclaration methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IWineD3DDevice
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDeclaration
)(
THIS_
WINED3DVERTEXELEMENT
*
elements
,
size_t
*
elements_count
)
PURE
;
STDMETHOD
(
SetDeclaration
)(
THIS_
const
WINED3DVERTEXELEMENT
*
elements
,
size_t
element_count
)
PURE
;
STDMETHOD
(
GetDeclaration
)(
THIS_
WINED3DVERTEXELEMENT
*
elements
,
UINT
*
elements_count
)
PURE
;
STDMETHOD
(
SetDeclaration
)(
THIS_
const
WINED3DVERTEXELEMENT
*
elements
,
UINT
element_count
)
PURE
;
};
#undef INTERFACE
...
...
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