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
adf09ce6
Commit
adf09ce6
authored
Mar 27, 2010
by
Mikhail Maroukhine
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: Fix compiler warnings with flag -Wcast-qual.
parent
3d62b870
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
mesh.c
dlls/d3dx9_36/mesh.c
+3
-3
shader.c
dlls/d3dx9_36/shader.c
+2
-2
No files found.
dlls/d3dx9_36/mesh.c
View file @
adf09ce6
...
...
@@ -117,7 +117,7 @@ HRESULT WINAPI D3DXComputeBoundingBox(CONST D3DXVECTOR3 *pfirstposition, DWORD n
for
(
i
=
0
;
i
<
numvertices
;
i
++
)
{
vec
=
*
(
(
D3DXVECTOR3
*
)((
char
*
)
pfirstposition
+
dwstride
*
i
)
);
vec
=
*
(
(
const
D3DXVECTOR3
*
)((
const
char
*
)
pfirstposition
+
dwstride
*
i
)
);
if
(
vec
.
x
<
pmin
->
x
)
pmin
->
x
=
vec
.
x
;
if
(
vec
.
x
>
pmax
->
x
)
pmax
->
x
=
vec
.
x
;
...
...
@@ -152,7 +152,7 @@ HRESULT WINAPI D3DXComputeBoundingSphere(CONST D3DXVECTOR3* pfirstposition, DWOR
for
(
i
=
0
;
i
<
numvertices
;
i
++
)
{
D3DXVec3Add
(
&
temp1
,
&
temp
,
(
D3DXVECTOR3
*
)((
char
*
)
pfirstposition
+
dwstride
*
i
));
D3DXVec3Add
(
&
temp1
,
&
temp
,
(
const
D3DXVECTOR3
*
)((
const
char
*
)
pfirstposition
+
dwstride
*
i
));
temp
=
temp1
;
}
...
...
@@ -160,7 +160,7 @@ HRESULT WINAPI D3DXComputeBoundingSphere(CONST D3DXVECTOR3* pfirstposition, DWOR
for
(
i
=
0
;
i
<
numvertices
;
i
++
)
{
d
=
D3DXVec3Length
(
D3DXVec3Subtract
(
&
temp
,
(
D3DXVECTOR3
*
)((
char
*
)
pfirstposition
+
dwstride
*
i
),
pcenter
));
d
=
D3DXVec3Length
(
D3DXVec3Subtract
(
&
temp
,
(
const
D3DXVECTOR3
*
)((
const
char
*
)
pfirstposition
+
dwstride
*
i
),
pcenter
));
if
(
d
>
*
pradius
)
*
pradius
=
d
;
}
return
D3D_OK
;
...
...
dlls/d3dx9_36/shader.c
View file @
adf09ce6
...
...
@@ -608,7 +608,7 @@ HRESULT WINAPI D3DXGetShaderConstantTableEx(CONST DWORD* byte_code,
HRESULT
hr
;
LPCVOID
data
;
UINT
size
;
D3DXSHADER_CONSTANTTABLE
*
ctab_header
;
const
D3DXSHADER_CONSTANTTABLE
*
ctab_header
;
FIXME
(
"(%p, %x, %p): semi-stub
\n
"
,
byte_code
,
flags
,
constant_table
);
...
...
@@ -642,7 +642,7 @@ HRESULT WINAPI D3DXGetShaderConstantTableEx(CONST DWORD* byte_code,
object
->
size
=
size
;
memcpy
(
object
->
ctab
,
data
,
object
->
size
);
ctab_header
=
(
D3DXSHADER_CONSTANTTABLE
*
)
data
;
ctab_header
=
(
const
D3DXSHADER_CONSTANTTABLE
*
)
data
;
if
(
ctab_header
->
Size
!=
sizeof
(
D3DXSHADER_CONSTANTTABLE
))
goto
error
;
object
->
desc
.
Creator
=
ctab_header
->
Creator
?
(
LPCSTR
)
object
->
ctab
+
ctab_header
->
Creator
:
NULL
;
...
...
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