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
f3a515ce
Commit
f3a515ce
authored
Nov 24, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Cast-qual warnings fix.
parent
5381dd2c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
device.c
dlls/wined3d/device.c
+3
-3
utils.c
dlls/wined3d/utils.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/device.c
View file @
f3a515ce
...
...
@@ -2574,7 +2574,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetTransform(IWineD3DDevice *iface, W
glMatrixMode
(
GL_MODELVIEW
);
checkGLcall
(
"glMatrixMode(GL_MODELVIEW)"
);
glPushMatrix
();
glLoadMatrixf
((
float
*
)
lpmatrix
);
glLoadMatrixf
((
const
float
*
)
lpmatrix
);
checkGLcall
(
"glLoadMatrixf(...)"
);
/* Reset lights */
...
...
@@ -2629,7 +2629,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_MultiplyTransform(IWineD3DDevice *iface
FIXME
(
"Unhandled transform state!!
\n
"
);
}
multiply_matrix
(
&
temp
,
mat
,
(
WINED3DMATRIX
*
)
pMatrix
);
multiply_matrix
(
&
temp
,
mat
,
(
const
WINED3DMATRIX
*
)
pMatrix
);
/* Apply change via set transform - will reapply to eg. lights this way */
return
IWineD3DDeviceImpl_SetTransform
(
iface
,
State
,
&
temp
);
...
...
@@ -6720,7 +6720,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface,
int
j
;
/* hopefully using pointer addtion will be quicker than using a point + j * rowoffset */
unsigned
char
*
data
=
((
unsigned
char
*
)
IWineD3DSurface_GetData
(
pSourceSurface
))
+
offset
;
const
unsigned
char
*
data
=
((
const
unsigned
char
*
)
IWineD3DSurface_GetData
(
pSourceSurface
))
+
offset
;
for
(
j
=
destTop
;
j
<
(
srcHeight
+
destTop
)
;
j
++
){
...
...
dlls/wined3d/utils.c
View file @
f3a515ce
...
...
@@ -2450,7 +2450,7 @@ WINED3DFORMAT pixelformat_for_depth(DWORD depth) {
}
}
void
multiply_matrix
(
WINED3DMATRIX
*
dest
,
WINED3DMATRIX
*
src1
,
WINED3DMATRIX
*
src2
)
{
void
multiply_matrix
(
WINED3DMATRIX
*
dest
,
const
WINED3DMATRIX
*
src1
,
const
WINED3DMATRIX
*
src2
)
{
WINED3DMATRIX
temp
;
/* Now do the multiplication 'by hand'.
...
...
dlls/wined3d/wined3d_private.h
View file @
f3a515ce
...
...
@@ -1272,7 +1272,7 @@ void set_texture_matrix(const float *smat, DWORD flags, BOOL calculatedCoords)
int
D3DFmtMakeGlCfg
(
WINED3DFORMAT
BackBufferFormat
,
WINED3DFORMAT
StencilBufferFormat
,
int
*
attribs
,
int
*
nAttribs
,
BOOL
alternate
);
/* Math utils */
void
multiply_matrix
(
WINED3DMATRIX
*
dest
,
WINED3DMATRIX
*
src1
,
WINED3DMATRIX
*
src2
);
void
multiply_matrix
(
WINED3DMATRIX
*
dest
,
const
WINED3DMATRIX
*
src1
,
const
WINED3DMATRIX
*
src2
);
/*****************************************************************************
* To enable calling of inherited functions, requires prototypes
...
...
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