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
e4253fd8
Commit
e4253fd8
authored
Apr 21, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Constify some variables.
parent
25142a27
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
14 deletions
+14
-14
ddraw_private.h
dlls/ddraw/ddraw_private.h
+3
-3
executebuffer.c
dlls/ddraw/executebuffer.c
+2
-2
light.c
dlls/ddraw/light.c
+1
-1
main.c
dlls/ddraw/main.c
+1
-1
material.c
dlls/ddraw/material.c
+1
-1
utils.c
dlls/ddraw/utils.c
+4
-4
viewport.c
dlls/ddraw/viewport.c
+2
-2
No files found.
dlls/ddraw/ddraw_private.h
View file @
e4253fd8
...
...
@@ -598,10 +598,10 @@ const IDirect3DVertexBufferVtbl IDirect3DVertexBuffer1_Vtbl;
(((((d3dvtVertexType) >> (16 + (2 * (tex_num)))) + 1) & 0x03) + 1)
void
PixelFormat_WineD3DtoDD
(
DDPIXELFORMAT
*
DDPixelFormat
,
WINED3DFORMAT
WineD3DFormat
);
WINED3DFORMAT
PixelFormat_DD2WineD3D
(
DDPIXELFORMAT
*
DDPixelFormat
);
WINED3DFORMAT
PixelFormat_DD2WineD3D
(
const
DDPIXELFORMAT
*
DDPixelFormat
);
void
DDRAW_dump_surface_desc
(
const
DDSURFACEDESC2
*
lpddsd
);
void
DDRAW_dump_pixelformat
(
const
DDPIXELFORMAT
*
PixelFormat
);
void
dump_D3DMATRIX
(
D3DMATRIX
*
mat
);
void
dump_D3DMATRIX
(
const
D3DMATRIX
*
mat
);
void
DDRAW_dump_DDCAPS
(
const
DDCAPS
*
lpcaps
);
DWORD
get_flexible_vertex_size
(
DWORD
d3dvtVertexType
);
void
DDRAW_dump_DDSCAPS2
(
const
DDSCAPS2
*
in
);
...
...
@@ -609,7 +609,7 @@ void DDRAW_dump_cooperativelevel(DWORD cooplevel);
/* This only needs to be here as long the processvertices functionality of
* IDirect3DExecuteBuffer isn't in WineD3D */
void
multiply_matrix
(
LPD3DMATRIX
dest
,
LPD3DMATRIX
src1
,
LPD3DMATRIX
src2
);
void
multiply_matrix
(
LPD3DMATRIX
dest
,
const
D3DMATRIX
*
src1
,
const
D3DMATRIX
*
src2
);
/* Used for generic dumping */
typedef
struct
...
...
dlls/ddraw/executebuffer.c
View file @
e4253fd8
...
...
@@ -55,14 +55,14 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d7);
*
*****************************************************************************/
static
void
_dump_executedata
(
LPD3DEXECUTEDATA
lpData
)
{
static
void
_dump_executedata
(
const
D3DEXECUTEDATA
*
lpData
)
{
DPRINTF
(
"dwSize : %d
\n
"
,
lpData
->
dwSize
);
DPRINTF
(
"Vertex Offset : %d Count : %d
\n
"
,
lpData
->
dwVertexOffset
,
lpData
->
dwVertexCount
);
DPRINTF
(
"Instruction Offset : %d Length : %d
\n
"
,
lpData
->
dwInstructionOffset
,
lpData
->
dwInstructionLength
);
DPRINTF
(
"HVertex Offset : %d
\n
"
,
lpData
->
dwHVertexOffset
);
}
static
void
_dump_D3DEXECUTEBUFFERDESC
(
LPD3DEXECUTEBUFFERDESC
lpDesc
)
{
static
void
_dump_D3DEXECUTEBUFFERDESC
(
const
D3DEXECUTEBUFFERDESC
*
lpDesc
)
{
DPRINTF
(
"dwSize : %d
\n
"
,
lpDesc
->
dwSize
);
DPRINTF
(
"dwFlags : %x
\n
"
,
lpDesc
->
dwFlags
);
DPRINTF
(
"dwCaps : %x
\n
"
,
lpDesc
->
dwCaps
);
...
...
dlls/ddraw/light.c
View file @
e4253fd8
...
...
@@ -158,7 +158,7 @@ IDirect3DLightImpl_Initialize(IDirect3DLight *iface,
* DDERR_INVALIDPARAMS if Light is NULL
*
*****************************************************************************/
static
void
dump_light
(
LPD3DLIGHT2
light
)
static
void
dump_light
(
const
D3DLIGHT2
*
light
)
{
DPRINTF
(
" - dwSize : %d
\n
"
,
light
->
dwSize
);
}
...
...
dlls/ddraw/main.c
View file @
e4253fd8
...
...
@@ -95,7 +95,7 @@ static CRITICAL_SECTION ddraw_list_cs = { &ddraw_list_cs_debug, -1, 0, 0, 0, 0 }
*
***********************************************************************/
static
HRESULT
DDRAW_Create
(
GUID
*
guid
,
DDRAW_Create
(
const
GUID
*
guid
,
void
**
DD
,
IUnknown
*
UnkOuter
,
REFIID
iid
)
...
...
dlls/ddraw/material.c
View file @
e4253fd8
...
...
@@ -47,7 +47,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d7
);
WINE_DECLARE_DEBUG_CHANNEL
(
ddraw_thunk
);
static
void
dump_material
(
LPD3DMATERIAL
mat
)
static
void
dump_material
(
const
D3DMATERIAL
*
mat
)
{
DPRINTF
(
" dwSize : %d
\n
"
,
mat
->
dwSize
);
}
...
...
dlls/ddraw/utils.c
View file @
e4253fd8
...
...
@@ -337,7 +337,7 @@ PixelFormat_WineD3DtoDD(DDPIXELFORMAT *DDPixelFormat,
* WINED3DFMT_UNKNOWN if a matching format wasn't found
*****************************************************************************/
WINED3DFORMAT
PixelFormat_DD2WineD3D
(
DDPIXELFORMAT
*
DDPixelFormat
)
PixelFormat_DD2WineD3D
(
const
DDPIXELFORMAT
*
DDPixelFormat
)
{
TRACE
(
"Convert a DirectDraw Pixelformat to a WineD3D Pixelformat
\n
"
);
if
(
TRACE_ON
(
ddraw
))
...
...
@@ -874,7 +874,7 @@ void DDRAW_dump_surface_desc(const DDSURFACEDESC2 *lpddsd)
}
void
dump_D3DMATRIX
(
D3DMATRIX
*
mat
)
dump_D3DMATRIX
(
const
D3DMATRIX
*
mat
)
{
DPRINTF
(
" %f %f %f %f
\n
"
,
mat
->
_11
,
mat
->
_12
,
mat
->
_13
,
mat
->
_14
);
DPRINTF
(
" %f %f %f %f
\n
"
,
mat
->
_21
,
mat
->
_22
,
mat
->
_23
,
mat
->
_24
);
...
...
@@ -1129,8 +1129,8 @@ void DDRAW_dump_DDCAPS(const DDCAPS *lpcaps)
*****************************************************************************/
void
multiply_matrix
(
D3DMATRIX
*
dest
,
D3DMATRIX
*
src1
,
D3DMATRIX
*
src2
)
const
D3DMATRIX
*
src1
,
const
D3DMATRIX
*
src2
)
{
D3DMATRIX
temp
;
...
...
dlls/ddraw/viewport.c
View file @
e4253fd8
...
...
@@ -95,7 +95,7 @@ void viewport_activate(IDirect3DViewportImpl* This) {
* Writes viewport information to TRACE
*
*****************************************************************************/
static
void
_dump_D3DVIEWPORT
(
D3DVIEWPORT
*
lpvp
)
static
void
_dump_D3DVIEWPORT
(
const
D3DVIEWPORT
*
lpvp
)
{
TRACE
(
" - dwSize = %d dwX = %d dwY = %d
\n
"
,
lpvp
->
dwSize
,
lpvp
->
dwX
,
lpvp
->
dwY
);
...
...
@@ -109,7 +109,7 @@ static void _dump_D3DVIEWPORT(D3DVIEWPORT *lpvp)
lpvp
->
dvMinZ
,
lpvp
->
dvMaxZ
);
}
static
void
_dump_D3DVIEWPORT2
(
D3DVIEWPORT2
*
lpvp
)
static
void
_dump_D3DVIEWPORT2
(
const
D3DVIEWPORT2
*
lpvp
)
{
TRACE
(
" - dwSize = %d dwX = %d dwY = %d
\n
"
,
lpvp
->
dwSize
,
lpvp
->
dwX
,
lpvp
->
dwY
);
...
...
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